Fix a memory leak in shlwapi
Mike McCormack
mike at codeweavers.com
Tue Sep 23 14:09:55 CDT 2003
ChangeLog:
* Fix a memory leak in shlwapi
-------------- next part --------------
Index: dlls/shlwapi/path.c
===================================================================
RCS file: /home/wine/wine/dlls/shlwapi/path.c,v
retrieving revision 1.37
diff -u -r1.37 path.c
--- dlls/shlwapi/path.c 11 Sep 2003 02:56:16 -0000 1.37
+++ dlls/shlwapi/path.c 22 Sep 2003 15:46:13 -0000
@@ -1199,7 +1199,10 @@
lpszCurr = NULL; /* Last Path, terminate after this */
if (!PathAppendW(buff, lpszFile))
+ {
+ free(lpszPATH);
return FALSE;
+ }
if (PathFileExistsDefExtW(buff, dwWhich))
{
strcpyW(lpszFile, buff);
More information about the wine-patches
mailing list