From: Felipe Pena Date: Wed, 30 Dec 2009 13:38:45 +0000 (+0000) Subject: - Fixed memory leak when HttpUtil::Inflate() fails X-Git-Tag: RELEASE_1_7_0~21 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=bbafab43408216c51739e124c088913e62ac3ff0;p=m6w6%2Fext-http - Fixed memory leak when HttpUtil::Inflate() fails --- diff --git a/http_encoding_api.c b/http_encoding_api.c index 9159106..3a93a19 100644 --- a/http_encoding_api.c +++ b/http_encoding_api.c @@ -344,6 +344,10 @@ retry_raw_inflate: } } inflateEnd(&Z); + + if (decoded_len && *decoded) { + efree(*decoded); + } } http_error_ex(HE_WARNING, HTTP_E_ENCODING, "Could not inflate data: %s", zError(status));