From ce072469888db55316d648918229f2b83fc5e7cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Tue, 11 Dec 2007 16:17:11 +0100 Subject: Don't use the if(foo) free(foo); construct, as free(NULL); is well defined. --- src/input/input_http.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/input/input_http.c') diff --git a/src/input/input_http.c b/src/input/input_http.c index 328ab523e..5975bb64b 100644 --- a/src/input/input_http.c +++ b/src/input/input_http.c @@ -1076,8 +1076,7 @@ static const char *http_class_get_identifier (input_class_t *this_gen) { static void http_class_dispose (input_class_t *this_gen) { http_input_class_t *this = (http_input_class_t *) this_gen; - if(this->proxyhost_env) - free(this->proxyhost_env); + free(this->proxyhost_env); free (this); } -- cgit v1.2.3