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

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


---
 dlls/rpcrt4/tests/rpc.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/rpcrt4/tests/rpc.c b/dlls/rpcrt4/tests/rpc.c
index 0f742b2..3acb46e 100644
--- a/dlls/rpcrt4/tests/rpc.c
+++ b/dlls/rpcrt4/tests/rpc.c
@@ -654,9 +654,13 @@ static void test_RpcStringBindingParseA(void)
     ok(status == RPC_S_INVALID_STRING_BINDING, "RpcStringBindingParseA should have returned RPC_S_INVALID_STRING_BINDING instead of %d\n", status);
     todo_wine
     ok(uuid == NULL, "uuid was %p instead of NULL\n", uuid);
+    if (uuid)
+        RpcStringFreeA(&uuid);
     ok(protseq == NULL, "protseq was %p instead of NULL\n", protseq);
     todo_wine
     ok(network_addr == NULL, "network_addr was %p instead of NULL\n", network_addr);
+    if (network_addr)
+        RpcStringFreeA(&network_addr);
     ok(endpoint == NULL, "endpoint was %p instead of NULL\n", endpoint);
     ok(options == NULL, "options was %p instead of NULL\n", options);
 }
-- 
1.6.2.5


--------------080302040307040707000203--



More information about the wine-patches mailing list