aboutsummaryrefslogtreecommitdiff
path: root/src/common/torgzip.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-12-12 02:07:59 -0500
committerNick Mathewson <nickm@torproject.org>2009-12-12 02:07:59 -0500
commit0c1b3070cfec670190636d74f97c2aaf0e521bdb (patch)
treeba893e6987f7b429510cec38a1cb6aaf0dc13793 /src/common/torgzip.c
parent79f72d0ef6cc3ce7cc92146ed0f0bdc7a4acad1a (diff)
downloadtor-0c1b3070cfec670190636d74f97c2aaf0e521bdb.tar
tor-0c1b3070cfec670190636d74f97c2aaf0e521bdb.tar.gz
Now that FOO_free(NULL) always works, remove checks before calling it.
Diffstat (limited to 'src/common/torgzip.c')
-rw-r--r--src/common/torgzip.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/torgzip.c b/src/common/torgzip.c
index 13e0c7fb7..4f1b46add 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;
}