rpcrt4: Fix memory leaks in the ndr_marshall tests.
This commit is contained in:
parent
52f08dd510
commit
24ba6a5cc6
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue