From: Markus Fischer Date: Tue, 30 Oct 2001 06:40:06 +0000 (+0000) Subject: Fix possible leak. X-Git-Tag: ChangeLog~476 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=963226543be4353bb914e217c7711d0d2eccd42c;p=php Fix possible leak. --- diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c index 1bd8447ddb..e79acc3dab 100644 --- a/ext/sockets/sockets.c +++ b/ext/sockets/sockets.c @@ -952,6 +952,7 @@ PHP_FUNCTION(socket_create) php_sock->bsd_socket = socket(Z_LVAL_PP(arg1), Z_LVAL_PP(arg2), Z_LVAL_PP(arg3)); Z_TYPE_P(php_sock) = Z_LVAL_PP(arg1); if (IS_INVALID_SOCKET(php_sock)) { + efree(php_sock); RETURN_FALSE; }