rpcrt4: Make sure we do not have *data allocated on error (Coverity).

This commit is contained in:
Marcus Meissner 2015-05-21 00:10:57 +02:00 committed by Alexandre Julliard
parent 47086b9aaf
commit 7b9efb1f45
1 changed files with 1 additions and 0 deletions

View File

@ -2359,6 +2359,7 @@ static RPC_STATUS rpcrt4_http_read_http_packet(HINTERNET request, RpcHttpAsyncDa
if (!RPCRT4_IsValidHttpPacket(hdr, *data, data_len))
{
ERR("invalid http packet\n");
HeapFree(GetProcessHeap(), 0, *data);
return RPC_S_PROTOCOL_ERROR;
}