t0021: minor filter process test cleanup
[gitweb.git] / parse-options-cb.c
index b5d920914e2a3ba3a46017f89f9952d08b8e5b58..b7d8f7dcb2c3ae7568542832accadab84c7ae314 100644 (file)
@@ -211,8 +211,7 @@ int parse_opt_passthru(const struct option *opt, const char *arg, int unset)
        if (recreate_opt(&sb, opt, arg, unset) < 0)
                return -1;
 
-       if (*opt_value)
-               free(*opt_value);
+       free(*opt_value);
 
        *opt_value = strbuf_detach(&sb, NULL);