rpcrt4: Fix memory leaks in the ndr_marshall tests.

This commit is contained in:
Rob Shearman 2008-01-09 10:33:38 +00:00 committed by Alexandre Julliard
parent 52f08dd510
commit 24ba6a5cc6
1 changed files with 3 additions and 0 deletions

View File

@ -1573,6 +1573,7 @@ static void test_ndr_buffer(void)
status = RpcBindingFromStringBinding(binding, &Handle); status = RpcBindingFromStringBinding(binding, &Handle);
ok(status == RPC_S_OK, "RpcBindingFromStringBinding failed (%lu)\n", status); ok(status == RPC_S_OK, "RpcBindingFromStringBinding failed (%lu)\n", status);
RpcStringFree(&binding);
NdrClientInitializeNew(&RpcMessage, &StubMsg, &StubDesc, 5); NdrClientInitializeNew(&RpcMessage, &StubMsg, &StubDesc, 5);
@ -1601,6 +1602,8 @@ todo_wine
/* attempt double-free */ /* attempt double-free */
NdrFreeBuffer(&StubMsg); NdrFreeBuffer(&StubMsg);
RpcBindingFree(&Handle);
status = RpcServerUnregisterIf(NULL, NULL, FALSE); status = RpcServerUnregisterIf(NULL, NULL, FALSE);
ok(status == RPC_S_OK, "RpcServerUnregisterIf failed (%lu)\n", status); ok(status == RPC_S_OK, "RpcServerUnregisterIf failed (%lu)\n", status);
} }