From 6e8654aae16ec9cca246f0fe1c863ced98249b3d Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Thu, 1 Feb 2007 14:02:35 +0000 Subject: [PATCH] plug leak --- ext/iconv/iconv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index 3447403c14..4d66476094 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -2312,6 +2312,9 @@ PHP_FUNCTION(ob_iconv_handler) if (content_type && sapi_add_header(content_type, strlen(content_type), 0) != FAILURE) { SG(sapi_headers).send_default_content_type = 0; } + if (mimetype_alloced) { + efree(mimetype); + } RETURN_STRINGL(out_buffer, out_len, 0); } if (mimetype_alloced) { -- 2.50.1