]> granicus.if.org Git - php/commitdiff
Fix possible leak.
authorMarkus Fischer <mfischer@php.net>
Tue, 30 Oct 2001 06:40:06 +0000 (06:40 +0000)
committerMarkus Fischer <mfischer@php.net>
Tue, 30 Oct 2001 06:40:06 +0000 (06:40 +0000)
ext/sockets/sockets.c

index 1bd8447ddb89b9019afd109affbc3a8cacb01aa2..e79acc3dab713a6e170d33ad9abd3ca79c33a295 100644 (file)
@@ -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;
        }