Browse Source

fix #37077 (stream_socket_server() leaks when the port is not allowed)

PHP-5.1
Antony Dovgal 21 years ago
parent
commit
7c42ddb8e0
  1. 2
      ext/standard/streamsfuncs.c

2
ext/standard/streamsfuncs.c

@ -207,6 +207,8 @@ PHP_FUNCTION(stream_socket_server)
/* no need to dup; we need to efree buf anyway */
zval_dtor(zerrstr);
ZVAL_STRING(zerrstr, errstr, 0);
} else if (errstr) {
efree(errstr);
}
RETURN_FALSE;
}

Loading…
Cancel
Save