1
0
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:
Andi Gutmans
2000-07-01 12:23:09 +00:00
parent f5385608c1
commit 50e9b1fe36
+1 -2
View File
@@ -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);
}
}