diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-12-12 02:07:59 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-12-12 02:07:59 -0500 |
commit | 0c1b3070cfec670190636d74f97c2aaf0e521bdb (patch) | |
tree | ba893e6987f7b429510cec38a1cb6aaf0dc13793 /src/common/torgzip.c | |
parent | 79f72d0ef6cc3ce7cc92146ed0f0bdc7a4acad1a (diff) | |
download | tor-0c1b3070cfec670190636d74f97c2aaf0e521bdb.tar.gz tor-0c1b3070cfec670190636d74f97c2aaf0e521bdb.zip |
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.c | 4 |
1 files changed, 1 insertions, 3 deletions
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; } |