Nikolay Sivov : rpcrt4/tests: Fix a minor leak (Valgrind).

Alexandre Julliard julliard at wine.codeweavers.com
Mon Apr 13 07:42:01 CDT 2015


Module: wine
Branch: master
Commit: 4cf70b1418260fda95d69bcb50374a64f1ce895b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4cf70b1418260fda95d69bcb50374a64f1ce895b

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sat Apr 11 11:01:09 2015 +0300

rpcrt4/tests: Fix a minor leak (Valgrind).

---

 dlls/rpcrt4/tests/ndr_marshall.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/rpcrt4/tests/ndr_marshall.c b/dlls/rpcrt4/tests/ndr_marshall.c
index 315a452..917c9e5 100644
--- a/dlls/rpcrt4/tests/ndr_marshall.c
+++ b/dlls/rpcrt4/tests/ndr_marshall.c
@@ -1590,6 +1590,7 @@ todo_wine {
        "mem not pointing at buffer %p/%p\n", mem, StubMsg.BufferStart + 12 );
     ok(my_alloc_called == 0, "alloc called %d\n", my_alloc_called);
 }
+    HeapFree(GetProcessHeap(), 0, mem_orig);
 
     my_alloc_called = 0;
     mem = mem_orig = HeapAlloc(GetProcessHeap(), 0, sizeof(memsrc));




More information about the wine-cvs mailing list