Paul Vriens : rpcrt4/tests: Fix some memory leaks (Valgrind).

Alexandre Julliard julliard at winehq.org
Fri Jan 22 08:26:54 CST 2010


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Fri Jan 22 11:22:37 2010 +0100

rpcrt4/tests: Fix some memory leaks (Valgrind).

---

 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);
 }




More information about the wine-cvs mailing list