mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +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;
|
||||
#else
|
||||
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();
|
||||
#endif
|
||||
|
||||
|
@ -866,7 +865,6 @@ PHP_FUNCTION(unpack)
|
|||
|
||||
default:
|
||||
zend_value_error("Invalid format type %c", type);
|
||||
zend_array_destroy(Z_ARR_P(return_value));
|
||||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue