diff options
author | Andi Gutmans <andi@php.net> | 2000-07-01 12:23:09 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-07-01 12:23:09 +0000 |
commit | 50e9b1fe36f05f07f253bc05391ab95f0d493e52 (patch) | |
tree | 655740742396185bc0357b01a09201c6464234b4 | |
parent | f5385608c1053b7461f20b25ebe69d0c3effb701 (diff) | |
download | php-git-50e9b1fe36f05f07f253bc05391ab95f0d493e52.tar.gz |
- Commit tiny patch to remove redundant code by Amit Schreiber.
-rw-r--r-- | ext/standard/image.c | 3 |
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); } } |