add_rev_cmdline() in revision.c is (re)allocating an array of struct rev_cmdline_entry. This patch releases it. Signed-off-by: Christian Couder <chriscool@xxxxxxxxxxxxx> --- builtin/revert.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/builtin/revert.c b/builtin/revert.c index 5f82a84..1d32ed5 100644 --- a/builtin/revert.c +++ b/builtin/revert.c @@ -217,6 +217,8 @@ int cmd_revert(int argc, const char **argv, const char *prefix) git_config(git_default_config, NULL); parse_args(argc, argv, &opts); res = sequencer_pick_revisions(&opts); + if (opts.revs) + free(opts.revs->cmdline.rev); free(opts.revs); if (res < 0) die(_("revert failed")); @@ -233,6 +235,8 @@ int cmd_cherry_pick(int argc, const char **argv, const char *prefix) git_config(git_default_config, NULL); parse_args(argc, argv, &opts); res = sequencer_pick_revisions(&opts); + if (opts.revs) + free(opts.revs->cmdline.rev); free(opts.revs); if (res < 0) die(_("cherry-pick failed")); -- 1.7.10.2.555.g6528037 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html