mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
Fix invalid free
This commit is contained in:
parent
cf7406b1f4
commit
fa123b51cc
1 changed files with 2 additions and 1 deletions
|
@ -100,8 +100,9 @@ static void php_fsockopen_stream(INTERNAL_FUNCTION_PARAMETERS, int persistent)
|
||||||
if (errstr) {
|
if (errstr) {
|
||||||
if (zerrstr) {
|
if (zerrstr) {
|
||||||
ZEND_TRY_ASSIGN_STR(zerrstr, errstr);
|
ZEND_TRY_ASSIGN_STR(zerrstr, errstr);
|
||||||
|
} else {
|
||||||
|
zend_string_release(errstr);
|
||||||
}
|
}
|
||||||
zend_string_release(errstr);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RETURN_FALSE;
|
RETURN_FALSE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue