summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/image.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/standard/image.c b/ext/standard/image.c
index 4a2cf5dc92..c8b825a046 100644
--- a/ext/standard/image.c
+++ b/ext/standard/image.c
@@ -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);
}
}