From 50e9b1fe36f05f07f253bc05391ab95f0d493e52 Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Sat, 1 Jul 2000 12:23:09 +0000 Subject: [PATCH] - Commit tiny patch to remove redundant code by Amit Schreiber. --- ext/standard/image.c | 3 +-- 1 file changed, 1 insertion(+), 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); } } -- 2.50.1