]> granicus.if.org Git - php/commitdiff
- Commit tiny patch to remove redundant code by Amit Schreiber.
authorAndi Gutmans <andi@php.net>
Sat, 1 Jul 2000 12:23:09 +0000 (12:23 +0000)
committerAndi Gutmans <andi@php.net>
Sat, 1 Jul 2000 12:23:09 +0000 (12:23 +0000)
ext/standard/image.c

index 4a2cf5dc92e71acd0604aea464a225bf640bf626..c8b825a04699cadb3b01debb0bb420f399335982 100644 (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);
        }
 }