Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
revert: free msg in format_todo()
[gitweb.git]
/
builtin
/
revert.c
diff --git
a/builtin/revert.c
b/builtin/revert.c
index 028bcbcd75d21ada2bc0406ff74e3073014bb41f..76a1633b9bdc42393c9b8e3c6a4641c42a6ee950 100644
(file)
--- a/
builtin/revert.c
+++ b/
builtin/revert.c
@@
-709,6
+709,7
@@
static int format_todo(struct strbuf *buf, struct commit_list *todo_list,
if (get_message(cur->item, &msg))
return error(_("Cannot get commit message for %s"), sha1_abbrev);
strbuf_addf(buf, "%s %s %s\n", action_str, sha1_abbrev, msg.subject);
+ free_message(&msg);
}
return 0;
}