aboutsummaryrefslogtreecommitdiff
path: root/src/common/torgzip.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-03-20 02:13:35 +0000
committerRoger Dingledine <arma@torproject.org>2006-03-20 02:13:35 +0000
commit6449e2f6d6cf1e261a446892821c21f7d07ec508 (patch)
treeca007568f71f62d5a4ea4d5364e167fc311ef1b8 /src/common/torgzip.c
parent54ced294dfccd372e245224d09e13960d28e9dca (diff)
downloadtor-6449e2f6d6cf1e261a446892821c21f7d07ec508.tar
tor-6449e2f6d6cf1e261a446892821c21f7d07ec508.tar.gz
ok, commenting that out broke things real bad.
leave it, and accept the memory leak for now. svn:r6201
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 ec1b5489c..1f78089f6 100644
--- a/src/common/torgzip.c
+++ b/src/common/torgzip.c
@@ -204,9 +204,8 @@ tor_gzip_uncompress(char **out, size_t *out_len,
case Z_STREAM_END:
if (stream->avail_in == 0)
goto done;
-#if 0
/* There may be more compressed data here. */
- /* But if so, this is not the right way to find it. If
+ /* XXX But if so, this is not the right way to find it. If
* we call inflateInit2 below, stream->state will get
* re-zcalloc'ed and we'll leak the old one. -RD */
if (inflateInit2(stream, method_bits(method)) != Z_OK) {
@@ -214,7 +213,6 @@ tor_gzip_uncompress(char **out, size_t *out_len,
stream->msg?stream->msg:"<no message>");
goto err;
}
-#endif
break;
case Z_OK:
if (!complete_only && stream->avail_in == 0)