merge_trees(): ensure that the callers release output buffer
[gitweb.git] / parse-options-cb.c
index 239898d946f06d102030569fd45780f523fdcd5a..ba5acf3111d809a3c77314fb2c0852854620cfae 100644 (file)
@@ -144,7 +144,7 @@ int parse_opt_string_list(const struct option *opt, const char *arg, int unset)
        if (!arg)
                return -1;
 
-       string_list_append(v, xstrdup(arg));
+       string_list_append(v, arg);
        return 0;
 }