Fix invalid free

This commit is contained in:
Nikita Popov 2019-02-08 10:49:54 +01:00
parent cf7406b1f4
commit fa123b51cc

View file

@ -100,8 +100,9 @@ static void php_fsockopen_stream(INTERNAL_FUNCTION_PARAMETERS, int persistent)
if (errstr) {
if (zerrstr) {
ZEND_TRY_ASSIGN_STR(zerrstr, errstr);
} else {
zend_string_release(errstr);
}
zend_string_release(errstr);
}
RETURN_FALSE;