[PATCH 4/4] Fix some memory leaks (Valgrind)

Paul Vriens Paul.Vriens.Wine at gmail.com
Mon Feb 1 02:59:16 CST 2010


---
 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 */
-- 
1.6.2.5


--------------040003090802070201080805--



More information about the wine-patches mailing list