Rob Shearman : rpcrt4: Fix memory leaks in the ndr_marshall tests.
Alexandre Julliard
julliard at winehq.org
Wed Jan 9 07:02:06 CST 2008
Module: wine
Branch: master
Commit: 24ba6a5cc62c327e204f4460243d604de1e99a61
URL: http://source.winehq.org/git/wine.git/?a=commit;h=24ba6a5cc62c327e204f4460243d604de1e99a61
Author: Rob Shearman <rob at codeweavers.com>
Date: Wed Jan 9 10:33:38 2008 +0000
rpcrt4: Fix memory leaks in the ndr_marshall tests.
---
dlls/rpcrt4/tests/ndr_marshall.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/rpcrt4/tests/ndr_marshall.c b/dlls/rpcrt4/tests/ndr_marshall.c
index 04bb1d9..6c72d23 100644
--- a/dlls/rpcrt4/tests/ndr_marshall.c
+++ b/dlls/rpcrt4/tests/ndr_marshall.c
@@ -1573,6 +1573,7 @@ static void test_ndr_buffer(void)
status = RpcBindingFromStringBinding(binding, &Handle);
ok(status == RPC_S_OK, "RpcBindingFromStringBinding failed (%lu)\n", status);
+ RpcStringFree(&binding);
NdrClientInitializeNew(&RpcMessage, &StubMsg, &StubDesc, 5);
@@ -1601,6 +1602,8 @@ todo_wine
/* attempt double-free */
NdrFreeBuffer(&StubMsg);
+ RpcBindingFree(&Handle);
+
status = RpcServerUnregisterIf(NULL, NULL, FALSE);
ok(status == RPC_S_OK, "RpcServerUnregisterIf failed (%lu)\n", status);
}
More information about the wine-cvs
mailing list