apply: clear_image() clears things a bit more
commit798b9ce87bfcd18896f9b0e21918b7bf31109b32
authorJunio C Hamano <gitster@pobox.com>
Tue, 8 May 2012 21:38:06 +0000 (8 14:38 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Jul 2012 21:36:26 +0000 (9 14:36 -0700)
treec9e99cea15abb3c4ef89bba39d287363d5bd32ae
parentf3b8f91a6919c8ab806016791c4a4bfd63c5169c
apply: clear_image() clears things a bit more

The clear_image() function did not clear the line table in the image
structure; this does not matter for the current callers, as the function
is only called from the codepaths that deal with binary patches where the
line table is never populated, and the codepaths that do populate the line
table free it themselves.

But it will start to matter when we introduce a codepath to retry a failed
patch, so make sure it clears and frees everything.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/apply.c