From 69039f064adf537d1acd192c3ce606107e8886fc Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Fri, 8 Jul 2016 10:09:51 +0200 Subject: [PATCH] winetest: Remove redundant NULL checks before heap_free(). Signed-off-by: Michael Stefaniuc Signed-off-by: Alexandre Julliard --- programs/winetest/send.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/programs/winetest/send.c b/programs/winetest/send.c index d04b6e9890e..d421e8b0cbb 100644 --- a/programs/winetest/send.c +++ b/programs/winetest/send.c @@ -395,10 +395,8 @@ send_file_wininet (const char *name) } done: - if (buffers_in.lpcszHeader != NULL) - heap_free((void *) buffers_in.lpcszHeader); - if (str != NULL) - heap_free (str); + heap_free((void *)buffers_in.lpcszHeader); + heap_free(str); if (pInternetCloseHandle != NULL && request != NULL) pInternetCloseHandle (request); if (pInternetCloseHandle != NULL && connection != NULL)