Author: tfaber
Date: Mon Apr 6 08:57:12 2015
New Revision: 67071
URL:
http://svn.reactos.org/svn/reactos?rev=67071&view=rev
Log:
[RPCRT4]
- Avoid double free introduced in r63605.
CORE-8200
Modified:
trunk/reactos/dll/win32/rpcrt4/ndr_stubless.c
Modified: trunk/reactos/dll/win32/rpcrt4/ndr_stubless.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/rpcrt4/ndr_stubl…
==============================================================================
--- trunk/reactos/dll/win32/rpcrt4/ndr_stubless.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/rpcrt4/ndr_stubless.c [iso-8859-1] Mon Apr 6 08:57:12 2015
@@ -1109,7 +1109,9 @@
call_marshaller(pStubMsg, pArg, ¶ms[i]);
break;
case STUBLESS_FREE:
- if (params[i].attr.ServerAllocSize)
+ if (params[i].attr.MustFree)
+ break;
+ else if (params[i].attr.ServerAllocSize)
{
HeapFree(GetProcessHeap(), 0, *(void **)pArg);
}