Fix a memory leak in shlwapi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




ChangeLog: * Fix a memory leak in shlwapi
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);

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux