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:
meep-eep
2003-09-12 23:28:33 +00:00
parent ace6ecaa5b
commit f198ca6d11
+1
View File
@@ -632,6 +632,7 @@ uio_verifyPath(uio_DirHandle *dirHandle, const char *path,
return 0; return 0;
case ENOTDIR: case ENOTDIR:
// A component is matched, but not as a dir. Failed. // A component is matched, but not as a dir. Failed.
uio_free(*resolvedPath);
errno = ENOTDIR; errno = ENOTDIR;
return -1; return -1;
case ENOENT: case ENOENT: