msvcrt: Remove redundant NULL checks before free().
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fb1f42754d
commit
dbafbcccfc
|
@ -365,7 +365,7 @@ void CDECL MSVCRT__wperror(const MSVCRT_wchar_t* str)
|
|||
}
|
||||
}
|
||||
MSVCRT_perror(buffer);
|
||||
if (buffer) MSVCRT_free(buffer);
|
||||
MSVCRT_free(buffer);
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
|
|
|
@ -3498,7 +3498,6 @@ int CDECL MSVCRT__write(int fd, const void* buf, unsigned int count)
|
|||
if (!WriteFile(hand, q, size, &num_written, NULL))
|
||||
num_written = -1;
|
||||
release_ioinfo(info);
|
||||
if(p)
|
||||
MSVCRT_free(p);
|
||||
if (num_written != size)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue