iliaa           Thu May 20 19:38:05 2004 EDT

  Modified files:              (Branch: PHP_4_3)
    /php-src/ext/gd     gd.c 
  Log:
  MFH: Fixed stream leak on error.
  
  
http://cvs.php.net/diff.php/php-src/ext/gd/gd.c?r1=1.221.2.41&r2=1.221.2.42&ty=u
Index: php-src/ext/gd/gd.c
diff -u php-src/ext/gd/gd.c:1.221.2.41 php-src/ext/gd/gd.c:1.221.2.42
--- php-src/ext/gd/gd.c:1.221.2.41      Sun May  9 13:34:01 2004
+++ php-src/ext/gd/gd.c Thu May 20 19:38:05 2004
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: gd.c,v 1.221.2.41 2004/05/09 17:34:01 iliaa Exp $ */
+/* $Id: gd.c,v 1.221.2.42 2004/05/20 23:38:05 iliaa Exp $ */
 
 /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, 
    Cold Spring Harbor Labs. */
@@ -648,6 +648,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

Reply via email to