Commit 34dd5342 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

rpcrt4: Fix memory leak of 0-byte buffer allocated during processing of bind packets.

In this case conn->server_binding will be NULL and consequently bind->Handle will be NULL, causing I_RpcFreeBuffer to fail. Therefore just use I_RpcFree to free the buffer as that is just what I_RpcFreeBuffer does under the hood anyway.
parent ffd37b0e
......@@ -352,7 +352,7 @@ static void RPCRT4_process_packet(RpcConnection* conn, RpcPktHdr* hdr, RPC_MESSA
}
/* clean up */
I_RpcFreeBuffer(msg);
I_RpcFree(msg->Buffer);
RPCRT4_FreeHeader(hdr);
HeapFree(GetProcessHeap(), 0, msg);
}
......
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