rpcrt4: Initialise the memory in test_simple_struct_marshal before passing it to NdrSimpleStructUnmarshall. [try 2]

Robert Shearman rob at codeweavers.com
Fri Nov 30 16:03:39 CST 2007

Otherwise, the unmarshalling code will read from unintialised memory 
when trying to reuse the embedded pointers in the memory block.

Also fix a couple of memory leaks.
  dlls/rpcrt4/tests/ndr_marshall.c |    4 +++-
  1 files changed, 3 insertions(+), 1 deletions(-)

I was a bit hasty in sending the previous patch off. This version 
actually frees the memory in the correct place.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 83b8199f43ac14bbbd2b80445e212eb7b18b98e7.diff
Type: text/x-patch
Size: 950 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071130/93b303c7/attachment.bin 

More information about the wine-patches mailing list