winetest: Remove redundant NULL checks before heap_free().

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-07-08 10:09:51 +02:00 committed by Alexandre Julliard
parent 0b96693f75
commit 69039f064a
1 changed files with 2 additions and 4 deletions

View File

@ -395,9 +395,7 @@ send_file_wininet (const char *name)
} }
done: done:
if (buffers_in.lpcszHeader != NULL)
heap_free((void *)buffers_in.lpcszHeader); heap_free((void *)buffers_in.lpcszHeader);
if (str != NULL)
heap_free(str); heap_free(str);
if (pInternetCloseHandle != NULL && request != NULL) if (pInternetCloseHandle != NULL && request != NULL)
pInternetCloseHandle (request); pInternetCloseHandle (request);