From bbafab43408216c51739e124c088913e62ac3ff0 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Wed, 30 Dec 2009 13:38:45 +0000 Subject: [PATCH] - Fixed memory leak when HttpUtil::Inflate() fails --- http_encoding_api.c | 4 ++++ 1 file changed, 4 insertions(+) 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)); -- 2.30.2