mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix double free on unpack error
This commit is contained in:
parent
3dde6fc4ac
commit
c2a2d2438a
1 changed files with 0 additions and 2 deletions
|
@ -846,7 +846,6 @@ PHP_FUNCTION(unpack)
|
||||||
break;
|
break;
|
||||||
#else
|
#else
|
||||||
zend_value_error("64-bit format codes are not available for 32-bit versions of PHP");
|
zend_value_error("64-bit format codes are not available for 32-bit versions of PHP");
|
||||||
zend_array_destroy(Z_ARR_P(return_value));
|
|
||||||
RETURN_THROWS();
|
RETURN_THROWS();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -866,7 +865,6 @@ PHP_FUNCTION(unpack)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
zend_value_error("Invalid format type %c", type);
|
zend_value_error("Invalid format type %c", type);
|
||||||
zend_array_destroy(Z_ARR_P(return_value));
|
|
||||||
RETURN_THROWS();
|
RETURN_THROWS();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue