1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 11:42:17 +02:00

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;