iliaa Thu May 20 19:38:00 2004 EDT
Modified files:
/php-src/ext/gd gd.c
Log:
Fixed stream leak on error.
http://cvs.php.net/diff.php/php-src/ext/gd/gd.c?r1=1.293&r2=1.294&ty=u
Index: php-src/ext/gd/gd.c
diff -u php-src/ext/gd/gd.c:1.293 php-src/ext/gd/gd.c:1.294
--- php-src/ext/gd/gd.c:1.293 Sun May 9 13:39:20 2004
+++ php-src/ext/gd/gd.c Thu May 20 19:37:59 2004
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gd.c,v 1.293 2004/05/09 17:39:20 iliaa Exp $ */
+/* $Id: gd.c,v 1.294 2004/05/20 23:37:59 iliaa Exp $ */
/* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
Cold Spring Harbor Labs. */
@@ -737,6 +737,7 @@
if (body_size != body_size_check) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error reading font");
efree(font);
+ php_stream_close(stream);
RETURN_FALSE;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php