From 6c136e862b7f538be3420751b6c1229a7f46c97d Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Mon, 1 Feb 2010 09:59:16 +0100 Subject: [PATCH] wininet/tests: Fix some memory leaks (Valgrind). --- dlls/wininet/tests/internet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/wininet/tests/internet.c b/dlls/wininet/tests/internet.c index 5885eb019cd..fa28b0cbbb4 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 */ -- 2.11.4.GIT