mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
- Commit tiny patch to remove redundant code by Amit Schreiber.
This commit is contained in:
parent
f5385608c1
commit
50e9b1fe36
@ -405,7 +405,7 @@ PHP_FUNCTION(getimagesize)
|
||||
if (result) {
|
||||
if (array_init(return_value) == FAILURE) {
|
||||
php_error(E_ERROR, "Unable to initialize array");
|
||||
if (result) efree(result);
|
||||
efree(result);
|
||||
return;
|
||||
}
|
||||
add_index_long(return_value, 0, result->width);
|
||||
@ -420,7 +420,6 @@ PHP_FUNCTION(getimagesize)
|
||||
if (result->channels != 0) {
|
||||
add_assoc_long(return_value,"channels",result->channels);
|
||||
}
|
||||
|
||||
efree(result);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user