aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-08-08 17:51:40 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-08-08 17:51:40 +0000
commit668c204970399211770542b21b8b873dcf68383c (patch)
tree614c83fc5c67b2f07d47f71aa20ae1507ec21a67 /lib
parentaf2d899d6b7ad7113b32c8bcba04355ce2e5dac2 (diff)
Song Ma noted a zlib memory leak in the illegal compressed header
countermeasures code path.
Diffstat (limited to 'lib')
-rw-r--r--lib/content_encoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/content_encoding.c b/lib/content_encoding.c
index a363f6db0..b80a57888 100644
--- a/lib/content_encoding.c
+++ b/lib/content_encoding.c
@@ -133,7 +133,7 @@ inflate_stream(struct connectdata *conn,
/* some servers seem to not generate zlib headers, so this is an attempt
to fix and continue anyway */
- inflateReset(z);
+ (void) inflateEnd(z); /* don't care about the return code */
if (inflateInit2(z, -MAX_WBITS) != Z_OK) {
return process_zlib_error(conn, z);
}