From f198ca6d119e081578e122266eff9734dc17d7cb Mon Sep 17 00:00:00 2001 From: meep-eep Date: Fri, 12 Sep 2003 23:28:33 +0000 Subject: [PATCH] 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 --- sc2/src/sc2code/libs/uio/ioaux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sc2/src/sc2code/libs/uio/ioaux.c b/sc2/src/sc2code/libs/uio/ioaux.c index deebdc8a3..40c11f310 100644 --- a/sc2/src/sc2code/libs/uio/ioaux.c +++ b/sc2/src/sc2code/libs/uio/ioaux.c @@ -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: