diff --git a/dlls/msvcrt/errno.c b/dlls/msvcrt/errno.c index 46b1859a8e6..893ed7bf20c 100644 --- a/dlls/msvcrt/errno.c +++ b/dlls/msvcrt/errno.c @@ -365,7 +365,7 @@ void CDECL MSVCRT__wperror(const MSVCRT_wchar_t* str) } } MSVCRT_perror(buffer); - if (buffer) MSVCRT_free(buffer); + MSVCRT_free(buffer); } /********************************************************************* diff --git a/dlls/msvcrt/file.c b/dlls/msvcrt/file.c index 5a2f1e65346..432d5c7e15c 100644 --- a/dlls/msvcrt/file.c +++ b/dlls/msvcrt/file.c @@ -3498,8 +3498,7 @@ 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); + MSVCRT_free(p); if (num_written != size) { TRACE("WriteFile (fd %d, hand %p) failed-last error (%d), num_written %d\n",