janitorial: Remove redundant NULL checks before calling HeapFree wrappers.

This commit is contained in:
Michael Stefaniuc 2006-10-15 01:03:58 +02:00 committed by Alexandre Julliard
parent 76b162067f
commit 56b87f3a0f
2 changed files with 3 additions and 5 deletions

View File

@ -595,7 +595,7 @@ RPC_STATUS RPCRT4_Receive(RpcConnection *Connection, RpcPktHdr **Header,
status = RPC_S_OK;
fail:
if (status != RPC_S_OK && *Header) {
if (status != RPC_S_OK) {
RPCRT4_FreeHeader(*Header);
*Header = NULL;
}
@ -765,9 +765,7 @@ RPC_STATUS WINAPI I_RpcReceive(PRPC_MESSAGE pMsg)
status = RPC_S_OK;
fail:
if (hdr) {
RPCRT4_FreeHeader(hdr);
}
RPCRT4_FreeHeader(hdr);
RPCRT4_CloseBinding(bind, conn);
return status;
}

View File

@ -273,7 +273,7 @@ static BOOL MZ_DoLoadImage( HANDLE hFile, LPCSTR filename, OverlayBlock *oblk, W
env_seg = par_env_seg;
else
env_seg=MZ_InitEnvironment(oldenv, filename);
if( alloc && oldenv)
if (alloc)
FreeEnvironmentStringsA( oldenv);
/* allocate memory for the executable */