rpcrt4: Partially revert commit 18faf3184b2ea263d77c2a7ad92eef27bc4ba08f.

Robert Shearman rob at codeweavers.com
Thu Dec 13 10:13:59 CST 2007


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       |   25 +------------------------
  dlls/rpcrt4/tests/ndr_marshall.c |    6 ------
  2 files changed, 1 insertions(+), 30 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 8ef65dc88c6b4c59d05068ef914e861d847c34cb.diff
Type: text/x-patch
Size: 2345 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071213/d4dd9aea/attachment-0001.bin 


More information about the wine-patches mailing list