]> granicus.if.org Git - php/commitdiff
plug leak
authorAntony Dovgal <tony2001@php.net>
Thu, 1 Feb 2007 14:02:35 +0000 (14:02 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 1 Feb 2007 14:02:35 +0000 (14:02 +0000)
ext/iconv/iconv.c

index 3447403c14c7ab880409868deeb83690a5857417..4d66476094beec8624ff192a87c55609b939a9d0 100644 (file)
@@ -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) {