Commit dfffff27407a78a37ee5b4329bf4d5298e509890

Authored by Loic Dachary
1 parent 7c06749a
Exists in master and in 1 other branch v2

remove dead code in create_gf_from_argv

Since there can only be one -m, base cannot be set by -m COMPOSITE and
then deallocated on the second -m if it is bugous. The second -m will
exit on error at _gf_errno = GF_E_TWOMULT;.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Showing 1 changed file with 0 additions and 1 deletions   Show diff stats
src/gf_method.c
... ... @@ -107,7 +107,6 @@ int create_gf_from_argv(gf_t *gf, int w, int argc, char **argv, int starting)
107 107 return 0;
108 108 }
109 109 } else {
110   - if (base != NULL) gf_free(base, 1);
111 110 _gf_errno = GF_E_UNKNOWN;
112 111 return 0;
113 112 }
... ...