felipe Sun May 10 01:00:15 2009 UTC Modified files: /php-src/ext/sockets sockets.c Log: - Fixed memory leak (patch by Christian Weiske) http://cvs.php.net/viewvc.cgi/php-src/ext/sockets/sockets.c?r1=1.212&r2=1.213&diff_format=u Index: php-src/ext/sockets/sockets.c diff -u php-src/ext/sockets/sockets.c:1.212 php-src/ext/sockets/sockets.c:1.213 --- php-src/ext/sockets/sockets.c:1.212 Thu Apr 16 05:32:58 2009 +++ php-src/ext/sockets/sockets.c Sun May 10 01:00:15 2009 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: sockets.c,v 1.212 2009/04/16 05:32:58 pajoye Exp $ */ +/* $Id: sockets.c,v 1.213 2009/05/10 01:00:15 felipe Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1553,6 +1553,7 @@ sin.sin_family = AF_INET; if (arg6 == NULL) { + efree(recv_buf); WRONG_PARAM_COUNT; } @@ -1581,6 +1582,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