From 0c1b3070cfec670190636d74f97c2aaf0e521bdb Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 12 Dec 2009 02:07:59 -0500 Subject: Now that FOO_free(NULL) always works, remove checks before calling it. --- src/common/torgzip.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/common/torgzip.c') diff --git a/src/common/torgzip.c b/src/common/torgzip.c index 13e0c7fb7c..4f1b46adde 100644 --- a/src/common/torgzip.c +++ b/src/common/torgzip.c @@ -165,9 +165,7 @@ tor_gzip_compress(char **out, size_t *out_len, deflateEnd(stream); tor_free(stream); } - if (*out) { - tor_free(*out); - } + tor_free(*out); return -1; } -- cgit v1.2.3-54-g00ecf