Removed a memory leak in error handling.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1222 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -632,6 +632,7 @@ uio_verifyPath(uio_DirHandle *dirHandle, const char *path,
|
||||
return 0;
|
||||
case ENOTDIR:
|
||||
// A component is matched, but not as a dir. Failed.
|
||||
uio_free(*resolvedPath);
|
||||
errno = ENOTDIR;
|
||||
return -1;
|
||||
case ENOENT:
|
||||
|
||||
Reference in New Issue
Block a user