Module: wine Branch: master Commit: 6c136e862b7f538be3420751b6c1229a7f46c97d URL: http://source.winehq.org/git/wine.git/?a=commit;h=6c136e862b7f538be3420751b6...
Author: Paul Vriens Paul.Vriens.Wine@gmail.com Date: Mon Feb 1 09:59:16 2010 +0100
wininet/tests: Fix some memory leaks (Valgrind).
---
dlls/wininet/tests/internet.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/wininet/tests/internet.c b/dlls/wininet/tests/internet.c index 5885eb0..fa28b0c 100644 --- a/dlls/wininet/tests/internet.c +++ b/dlls/wininet/tests/internet.c @@ -934,6 +934,7 @@ static void test_Option_PerConnectionOption(void) list.pOptions[1].Value.dwValue); verifyProxyEnable(1);
+ HeapFree(GetProcessHeap(), 0, list.pOptions[0].Value.pszValue); HeapFree(GetProcessHeap(), 0, list.pOptions);
/* disable the proxy server */ @@ -1060,6 +1061,7 @@ static void test_Option_PerConnectionOptionA(void) "Retrieved flags should've been PROXY_TYPE_PROXY, was: %d\n", list.pOptions[1].Value.dwValue);
+ HeapFree(GetProcessHeap(), 0, list.pOptions[0].Value.pszValue); HeapFree(GetProcessHeap(), 0, list.pOptions);
/* restore original settings */