X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_encoding_api.c;h=9e0976c58d2b33c5511d80a88cd7b7f3e4b931f7;hp=9159106a81bb3e7235c4a5dacf54fbbf0dbd23db;hb=dcc8cebf561d1e69e77b85fcd73b6a6c56b44748;hpb=2b9bcedabdd05c42571a4ccb18855e84cd4d89be diff --git a/http_encoding_api.c b/http_encoding_api.c index 9159106..9e0976c 100644 --- a/http_encoding_api.c +++ b/http_encoding_api.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2007, Michael Wallner | + | Copyright (c) 2004-2010, Michael Wallner | +--------------------------------------------------------------------+ */ @@ -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));