Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/diff-unique-abbrev-comments'
[gitweb.git]
/
parse-options-cb.c
diff --git
a/parse-options-cb.c
b/parse-options-cb.c
index b5d920914e2a3ba3a46017f89f9952d08b8e5b58..b7d8f7dcb2c3ae7568542832accadab84c7ae314 100644
(file)
--- a/
parse-options-cb.c
+++ b/
parse-options-cb.c
@@
-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);