tony2001                Fri Apr 14 10:01:34 2006 UTC

  Modified files:              
    /php-src/ext/standard       streamsfuncs.c 
  Log:
  MF51: fix #37077 (stream_socket_server() leaks when the port is not allowed)
  
  
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/streamsfuncs.c?r1=1.75&r2=1.76&diff_format=u
Index: php-src/ext/standard/streamsfuncs.c
diff -u php-src/ext/standard/streamsfuncs.c:1.75 
php-src/ext/standard/streamsfuncs.c:1.76
--- php-src/ext/standard/streamsfuncs.c:1.75    Thu Apr 13 04:41:08 2006
+++ php-src/ext/standard/streamsfuncs.c Fri Apr 14 10:01:34 2006
@@ -17,7 +17,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: streamsfuncs.c,v 1.75 2006/04/13 04:41:08 pollita Exp $ */
+/* $Id: streamsfuncs.c,v 1.76 2006/04/14 10:01:34 tony2001 Exp $ */
 
 #include "php.h"
 #include "php_globals.h"
@@ -207,6 +207,8 @@
                        /* no need to dup; we need to efree buf anyway */
                        zval_dtor(zerrstr);
                        ZVAL_STRING(zerrstr, errstr, 0);
+               } else if (errstr) {
+                       efree(errstr);
                }
                RETURN_FALSE;
        }

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to