tony2001 Thu Feb 1 14:02:35 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/iconv iconv.c
Log:
plug leak
http://cvs.php.net/viewvc.cgi/php-src/ext/iconv/iconv.c?r1=1.124.2.8.2.13&r2=1.124.2.8.2.14&diff_format=u
Index: php-src/ext/iconv/iconv.c
diff -u php-src/ext/iconv/iconv.c:1.124.2.8.2.13
php-src/ext/iconv/iconv.c:1.124.2.8.2.14
--- php-src/ext/iconv/iconv.c:1.124.2.8.2.13 Wed Jan 24 00:33:51 2007
+++ php-src/ext/iconv/iconv.c Thu Feb 1 14:02:35 2007
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: iconv.c,v 1.124.2.8.2.13 2007/01/24 00:33:51 tony2001 Exp $ */
+/* $Id: iconv.c,v 1.124.2.8.2.14 2007/02/01 14:02:35 tony2001 Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -2312,6 +2312,9 @@
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) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php