rpcrt4: Fix a memory leak in the cstub tests.

This commit is contained in:
Rob Shearman 2008-01-09 10:33:47 +00:00 committed by Alexandre Julliard
parent 24ba6a5cc6
commit 492947aa02
1 changed files with 2 additions and 0 deletions

View File

@ -924,6 +924,8 @@ static void test_delegating_Invoke(IPSFactoryBuffer *ppsf)
ok(*(DWORD*)msg.Buffer == 0xabcdef, "buf[0] %08x\n", *(DWORD*)msg.Buffer);
ok(*((DWORD*)msg.Buffer + 1) == S_OK, "buf[1] %08x\n", *((DWORD*)msg.Buffer + 1));
}
/* free the buffer allocated by delegating_invoke_chan_get_buffer */
HeapFree(GetProcessHeap(), 0, msg.Buffer);
IRpcStubBuffer_Release(pstub);
}