rpcrt4: Partially revert commit 18faf3184b2ea263d77c2a7ad92eef27bc4ba08f.
commitc7261b732b722f5181c1a2119abba1103fbdb871
authorRob Shearman <rob@codeweavers.com>
Thu, 13 Dec 2007 16:13:59 +0000 (13 16:13 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 14 Dec 2007 11:24:21 +0000 (14 12:24 +0100)
tree3de709c1b0f5536b3c1d20d3014ac1a0a6dccb7f
parentce220e2b5f17b6b3698d5731b317f4c729b8076f
rpcrt4: Partially revert commit 18faf3184b2ea263d77c2a7ad92eef27bc4ba08f.

Tests show that NdrPointerFree (and hence NdrFree) don't check whether
the memory was allocated with NdrAllocate before freeing it. This makes
sense as servers don't need to use NdrAllocate to allocate memory being
returned and so this commit caused that memory to be leaked.

NdrAllocate hasn't been changed as the tests show it is correct and it
appears that the memory list is used to implement the RpcSs memory model.
dlls/rpcrt4/ndr_marshall.c
dlls/rpcrt4/tests/ndr_marshall.c