revert: fix tiny memory leak in cherry-pick --ff
authorJonathan Nieder <jrnieder@gmail.com>
Sun, 21 Mar 2010 02:01:20 +0000 (21:01 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sun, 21 Mar 2010 02:25:48 +0000 (19:25 -0700)
commit28db756feead84929cdfaaee8bccd301384daab4
tree9b37553d3d40a0d238cd4ce10e47a96f03d9d920
parent8e75abfd8dc6649d800b8877304eaa0fd404c10f
revert: fix tiny memory leak in cherry-pick --ff

We forgot to free defmsg when returning early for a fast-forward.

Fixing this should reduce noise during test suite runs with valgrind.
More importantly, once cherry-pick learns to pick multiple commits,
the amount of memory leaked would start to add up.

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