Skip to content

Commit 9ad74ea

Browse files
committed
[RPCRT4]
- Avoid double free introduced in r63605. CORE-8200 svn path=/trunk/; revision=67071
1 parent 3233f5f commit 9ad74ea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

reactos/dll/win32/rpcrt4/ndr_stubless.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,9 @@ static LONG_PTR *stub_do_args(MIDL_STUB_MESSAGE *pStubMsg,
11091109
call_marshaller(pStubMsg, pArg, &params[i]);
11101110
break;
11111111
case STUBLESS_FREE:
1112-
if (params[i].attr.ServerAllocSize)
1112+
if (params[i].attr.MustFree)
1113+
break;
1114+
else if (params[i].attr.ServerAllocSize)
11131115
{
11141116
HeapFree(GetProcessHeap(), 0, *(void **)pArg);
11151117
}

0 commit comments

Comments
 (0)