tony2001                Tue Feb 13 12:56:10 2007 UTC

  Modified files:              
    /php-src/ext/standard       file.c 
  Log:
  plug possible leak
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/file.c?r1=1.483&r2=1.484&diff_format=u
Index: php-src/ext/standard/file.c
diff -u php-src/ext/standard/file.c:1.483 php-src/ext/standard/file.c:1.484
--- php-src/ext/standard/file.c:1.483   Wed Jan 10 20:12:14 2007
+++ php-src/ext/standard/file.c Tue Feb 13 12:56:10 2007
@@ -21,7 +21,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: file.c,v 1.483 2007/01/10 20:12:14 helly Exp $ */
+/* $Id: file.c,v 1.484 2007/02/13 12:56:10 tony2001 Exp $ */
 
 /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
 
@@ -568,6 +568,7 @@
 
        if (offset > 0 && php_stream_seek(stream, offset, SEEK_SET) < 0) {
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to seek to 
position %ld in the stream", offset);
+               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