Since it will have already been freed in the MUSTFREE pass.
Signed-off-by: Zebediah Figura z.figura12@gmail.com --- dlls/rpcrt4/ndr_stubless.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/rpcrt4/ndr_stubless.c b/dlls/rpcrt4/ndr_stubless.c index c2f260c..768bdc1 100644 --- a/dlls/rpcrt4/ndr_stubless.c +++ b/dlls/rpcrt4/ndr_stubless.c @@ -1215,7 +1215,7 @@ static LONG_PTR *stub_do_args(MIDL_STUB_MESSAGE *pStubMsg, } break; case STUBLESS_FREE: - if (params[i].attr.ServerAllocSize) + if (params[i].attr.ServerAllocSize && !params[i].attr.MustFree) { HeapFree(GetProcessHeap(), 0, *(void **)pArg); }