Commit 9c885c91 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

rpcrt4: We don't need to free object pointers if we are told we must allocate.

parent a2767e8d
......@@ -822,7 +822,7 @@ static void PointerUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
case RPC_FC_OP: /* object pointer - we must free data before overwriting it */
pointer_id = NDR_LOCAL_UINT32_READ(Buffer);
TRACE("pointer_id is 0x%08lx\n", pointer_id);
if (*pPointer)
if (!fMustAlloc && *pPointer)
FIXME("free object pointer %p\n", *pPointer);
break;
case RPC_FC_FP:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment