ok, commenting that out broke things real bad.

leave it, and accept the memory leak for now.


svn:r6201
This commit is contained in:
Roger Dingledine 2006-03-20 02:13:35 +00:00
parent 54ced294df
commit 6449e2f6d6

View File

@ -204,9 +204,8 @@ tor_gzip_uncompress(char **out, size_t *out_len,
case Z_STREAM_END: case Z_STREAM_END:
if (stream->avail_in == 0) if (stream->avail_in == 0)
goto done; goto done;
#if 0
/* There may be more compressed data here. */ /* 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 * we call inflateInit2 below, stream->state will get
* re-zcalloc'ed and we'll leak the old one. -RD */ * re-zcalloc'ed and we'll leak the old one. -RD */
if (inflateInit2(stream, method_bits(method)) != Z_OK) { 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>"); stream->msg?stream->msg:"<no message>");
goto err; goto err;
} }
#endif
break; break;
case Z_OK: case Z_OK:
if (!complete_only && stream->avail_in == 0) if (!complete_only && stream->avail_in == 0)