felipe          Sun May 10 01:03:45 2009 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/sockets        sockets.c 
  Log:
  - MFH: Fixed memory leak (patch by Christian Weiske)
  
http://cvs.php.net/viewvc.cgi/php-src/ext/sockets/sockets.c?r1=1.171.2.9.2.14.2.17&r2=1.171.2.9.2.14.2.18&diff_format=u
Index: php-src/ext/sockets/sockets.c
diff -u php-src/ext/sockets/sockets.c:1.171.2.9.2.14.2.17 
php-src/ext/sockets/sockets.c:1.171.2.9.2.14.2.18
--- php-src/ext/sockets/sockets.c:1.171.2.9.2.14.2.17   Thu Apr 16 05:33:13 2009
+++ php-src/ext/sockets/sockets.c       Sun May 10 01:03:45 2009
@@ -19,7 +19,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: sockets.c,v 1.171.2.9.2.14.2.17 2009/04/16 05:33:13 pajoye Exp $ */
+/* $Id: sockets.c,v 1.171.2.9.2.14.2.18 2009/05/10 01:03:45 felipe Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -1563,6 +1563,7 @@
                        sin.sin_family = AF_INET;
 
                        if (arg6 == NULL) {
+                               efree(recv_buf);
                                WRONG_PARAM_COUNT;
                        }
 
@@ -1591,6 +1592,7 @@
                        sin6.sin6_family = AF_INET6;
 
                        if (arg6 == NULL) {
+                               efree(recv_buf);
                                WRONG_PARAM_COUNT;
                        }
 



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

Reply via email to