summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Dachary <loic@dachary.org>2014-09-17 10:02:12 +0200
committerLoic Dachary <loic@dachary.org>2014-09-17 10:08:37 +0200
commitdfffff27407a78a37ee5b4329bf4d5298e509890 (patch)
tree6ca48087dea265337205f80cb113675eb517c5ff
parent7c06749ab8b162e205ad4bd47d8e910435dfdc71 (diff)
downloadgf-complete-dfffff27407a78a37ee5b4329bf4d5298e509890.tar.gz
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>
-rw-r--r--src/gf_method.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gf_method.c b/src/gf_method.c
index 6fb869e..2548a63 100644
--- a/src/gf_method.c
+++ b/src/gf_method.c
@@ -107,7 +107,6 @@ int create_gf_from_argv(gf_t *gf, int w, int argc, char **argv, int starting)
return 0;
}
} else {
- if (base != NULL) gf_free(base, 1);
_gf_errno = GF_E_UNKNOWN;
return 0;
}