[PATCH] Fix memory leak

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Mon Dec 10 22:37:42 CST 2007


---
 dlls/shlwapi/tests/string.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/shlwapi/tests/string.c b/dlls/shlwapi/tests/string.c
index 895d767..bdbd233 100644
--- a/dlls/shlwapi/tests/string.c
+++ b/dlls/shlwapi/tests/string.c
@@ -483,6 +483,7 @@ static void test_StrDupA(void)
    */
   lpszStr = StrDupA(NULL);
   ok(lpszStr == NULL || *lpszStr == '\0', "NULL string returned %p\n", lpszStr);
+  if(lpszStr) LocalFree((HLOCAL)lpszStr);
 }
 
 static void test_StrFormatByteSize64A(void)
-- 
1.5.3.3


--------------020608080704070407090303--




More information about the wine-patches mailing list