felipe Sun May 10 01:07:01 2009 UTC Modified files: (Branch: PHP_5_2) /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.23&r2=1.171.2.9.2.24&diff_format=u Index: php-src/ext/sockets/sockets.c diff -u php-src/ext/sockets/sockets.c:1.171.2.9.2.23 php-src/ext/sockets/sockets.c:1.171.2.9.2.24 --- php-src/ext/sockets/sockets.c:1.171.2.9.2.23 Thu Apr 16 05:32:38 2009 +++ php-src/ext/sockets/sockets.c Sun May 10 01:07:01 2009 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: sockets.c,v 1.171.2.9.2.23 2009/04/16 05:32:38 pajoye Exp $ */ +/* $Id: sockets.c,v 1.171.2.9.2.24 2009/05/10 01:07:01 felipe Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1418,6 +1418,7 @@ sin.sin_family = AF_INET; if (arg6 == NULL) { + efree(recv_buf); WRONG_PARAM_COUNT; } @@ -1446,6 +1447,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