[wininet/test] Free memory after use
Paul Vriens
paul.vriens.wine at gmail.com
Mon Dec 4 15:14:48 CST 2006
Hi,
one missing from the sequence.
Changelog
Free memory after use
Cheers,
Paul.
---
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;
--
1.4.4.1
More information about the wine-patches
mailing list