cvs: php-src(PHP_4_3) /ext/gd gd.c

From: Date: Thu, 20 May 2004 23:38:05 +0000
Subject: cvs: php-src(PHP_4_3) /ext/gd gd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-27395@lists.php.net to get a copy of this message
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; }

« previous php.cvs (#27395) next »