- Avoid double free introduced in r63605.
CORE-8200

svn path=/trunk/; revision=67071
This commit is contained in:
Thomas Faber 2015-04-06 08:57:12 +00:00
parent 3233f5f8b3
commit 9ad74ea48e

View file

@ -1109,7 +1109,9 @@ static LONG_PTR *stub_do_args(MIDL_STUB_MESSAGE *pStubMsg,
call_marshaller(pStubMsg, pArg, &params[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);
}