Paul Vriens : wininet/test: Free memory after use.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Dec 6 05:48:57 CST 2006
Module: wine
Branch: master
Commit: cae03f7658374523c3ceabed7495690f9084743f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cae03f7658374523c3ceabed7495690f9084743f
Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date: Mon Dec 4 22:14:48 2006 +0100
wininet/test: Free memory after use.
---
dlls/wininet/tests/url.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/wininet/tests/url.c b/dlls/wininet/tests/url.c
index 93e60e7..90008f0 100644
--- a/dlls/wininet/tests/url.c
+++ b/dlls/wininet/tests/url.c
@@ -612,6 +612,8 @@ static void InternetCreateUrlA_test(void
ok(len == strlen(CREATE_URL1), "Expected len %d, got %d\n", lstrlenA(CREATE_URL1), len);
ok(!strcmp(szUrl, CREATE_URL1), "Expected %s, got %s\n", CREATE_URL1, szUrl);
+ HeapFree(GetProcessHeap(), 0, szUrl);
+
memset(&urlComp, 0, sizeof(urlComp));
urlComp.dwStructSize = sizeof(URL_COMPONENTS);
urlComp.lpszScheme = https;
More information about the wine-cvs
mailing list