janitorial: Remove redundant NULL checks before calling HeapFree wrappers.
This commit is contained in:
parent
76b162067f
commit
56b87f3a0f
|
@ -595,7 +595,7 @@ RPC_STATUS RPCRT4_Receive(RpcConnection *Connection, RpcPktHdr **Header,
|
||||||
status = RPC_S_OK;
|
status = RPC_S_OK;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
if (status != RPC_S_OK && *Header) {
|
if (status != RPC_S_OK) {
|
||||||
RPCRT4_FreeHeader(*Header);
|
RPCRT4_FreeHeader(*Header);
|
||||||
*Header = NULL;
|
*Header = NULL;
|
||||||
}
|
}
|
||||||
|
@ -765,9 +765,7 @@ RPC_STATUS WINAPI I_RpcReceive(PRPC_MESSAGE pMsg)
|
||||||
status = RPC_S_OK;
|
status = RPC_S_OK;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
if (hdr) {
|
RPCRT4_FreeHeader(hdr);
|
||||||
RPCRT4_FreeHeader(hdr);
|
|
||||||
}
|
|
||||||
RPCRT4_CloseBinding(bind, conn);
|
RPCRT4_CloseBinding(bind, conn);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
|
@ -273,7 +273,7 @@ static BOOL MZ_DoLoadImage( HANDLE hFile, LPCSTR filename, OverlayBlock *oblk, W
|
||||||
env_seg = par_env_seg;
|
env_seg = par_env_seg;
|
||||||
else
|
else
|
||||||
env_seg=MZ_InitEnvironment(oldenv, filename);
|
env_seg=MZ_InitEnvironment(oldenv, filename);
|
||||||
if( alloc && oldenv)
|
if (alloc)
|
||||||
FreeEnvironmentStringsA( oldenv);
|
FreeEnvironmentStringsA( oldenv);
|
||||||
|
|
||||||
/* allocate memory for the executable */
|
/* allocate memory for the executable */
|
||||||
|
|
Loading…
Reference in New Issue