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:
Michael Stefaniuc 2016-07-08 10:09:32 +02:00 committed by Alexandre Julliard
parent fb1f42754d
commit dbafbcccfc
2 changed files with 2 additions and 3 deletions

View File

@ -365,7 +365,7 @@ void CDECL MSVCRT__wperror(const MSVCRT_wchar_t* str)
}
}
MSVCRT_perror(buffer);
if (buffer) MSVCRT_free(buffer);
MSVCRT_free(buffer);
}
/*********************************************************************

View File

@ -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)
{