diff options
author | Daniel Stenberg <daniel@haxx.se> | 2009-05-11 09:55:28 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2009-05-11 09:55:28 +0000 |
commit | 242a17b9e0e430ba5933f7b2ae5586233ec35f33 (patch) | |
tree | 374f0c965defded30a4b3102add2251450f10ada /lib/content_encoding.h | |
parent | 6e1632c60688a7c801bc25c8bb79bb937b605da8 (diff) | |
download | curl-242a17b9e0e430ba5933f7b2ae5586233ec35f33.tar.gz |
- Balint Szilakszi reported a memory leak when libcurl did gzip decompression
of streams that had some parts (legitimately) missing. We now provide and use
a proper cleanup function for the content encoding submodule.
http://curl.haxx.se/mail/lib-2009-05/0092.html
Diffstat (limited to 'lib/content_encoding.h')
-rw-r--r-- | lib/content_encoding.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/content_encoding.h b/lib/content_encoding.h index aa51420db..5e1db65a7 100644 --- a/lib/content_encoding.h +++ b/lib/content_encoding.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -29,8 +29,11 @@ */ #ifdef HAVE_LIBZ #define ALL_CONTENT_ENCODINGS "deflate, gzip" +/* force a cleanup */ +void Curl_unencode_cleanup(struct connectdata *conn); #else #define ALL_CONTENT_ENCODINGS "identity" +#define Curl_unencode_cleanup(x) #endif CURLcode Curl_unencode_deflate_write(struct connectdata *conn, @@ -42,4 +45,5 @@ Curl_unencode_gzip_write(struct connectdata *conn, struct SingleRequest *k, ssize_t nread); + #endif |