revert: free msg in format_todo()
authorRamkumar Ramachandra <artagnon@gmail.com>
Wed, 14 Dec 2011 16:54:28 +0000 (22:24 +0530)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Dec 2011 21:00:22 +0000 (13:00 -0800)
commitbf3de2b373d4fa55b6040c7dc6f7f8668ef45c19
tree111d251a3060c8ca8ec15b4f583cb06795f990cc
parentd596118d7a9b104db10e64b2680a30ea80f1439c
revert: free msg in format_todo()

Memory allocated to the fields of msg by get_message() isn't freed.
This is potentially a big leak, because fresh memory is allocated to
store the commit message for each commit.  Fix this using
free_message().

Reported-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/revert.c