[PATCH 6/6] Fix a memory leak (Valgrind)

Paul Vriens Paul.Vriens.Wine at gmail.com
Fri Jan 22 04:33:30 CST 2010


---
 dlls/msvcrtd/tests/debug.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/msvcrtd/tests/debug.c b/dlls/msvcrtd/tests/debug.c
index 71f6e4c..40fceac 100644
--- a/dlls/msvcrtd/tests/debug.c
+++ b/dlls/msvcrtd/tests/debug.c
@@ -60,6 +60,7 @@ static void test_new(void)
 
   mem = pMSVCRTD_operator_new_dbg(42, _NORMAL_BLOCK, __FILE__, __LINE__);
   ok(mem != NULL, "memory not allocated\n");
+  HeapFree(GetProcessHeap(), 0, mem);
 }
 
 /**********************************************************************/
-- 
1.6.2.5


--------------030403060001010801080406--



More information about the wine-patches mailing list