cvs: php4 /ext/gd gd.c

From: Date: Fri, 23 Aug 2002 17:53:03 +0000
Subject: cvs: php4 /ext/gd gd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-13608@lists.php.net to get a copy of this message
rasmus Fri Aug 23 13:53:03 2002 EDT Modified files: /php4/ext/gd gd.c Log: stream closing bug here too Index: php4/ext/gd/gd.c diff -u php4/ext/gd/gd.c:1.207 php4/ext/gd/gd.c:1.208 --- php4/ext/gd/gd.c:1.207 Fri Aug 23 13:45:46 2002 +++ php4/ext/gd/gd.c Fri Aug 23 13:53:03 2002 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd.c,v 1.207 2002/08/23 17:45:46 wez Exp $ */ +/* $Id: gd.c,v 1.208 2002/08/23 17:53:03 rasmus Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ @@ -545,7 +545,6 @@ while (b < body_size && (n = php_stream_read(stream, &font->data[b], body_size - b))) b += n; if (!n) { - php_stream_close(stream); efree(font->data); efree(font); if (php_stream_eof(stream)) { @@ -553,6 +552,7 @@ } else { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error while reading body"); } + php_stream_close(stream); RETURN_FALSE; } php_stream_close(stream);

« previous php.cvs (#13608) next »