mirror of
https://github.com/php/php-src.git
synced 2026-04-22 15:38:49 +02:00
- Commit tiny patch to remove redundant code by Amit Schreiber.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user