From: Junio C Hamano Date: Wed, 21 Mar 2012 22:21:32 +0000 (-0700) Subject: apply: free patch->result X-Git-Tag: v1.7.11-rc0~126^2~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/8192a2fafcd69fe1cad2fe84c99b03c63393c117?ds=inline;hp=--cc apply: free patch->result This is by far the largest piece of data, much larger than the patch and fragment structures or the three name fields in the patch structure. Signed-off-by: Junio C Hamano --- 8192a2fafcd69fe1cad2fe84c99b03c63393c117 diff --git a/builtin/apply.c b/builtin/apply.c index 28668c889a..c65fb3f8da 100644 --- a/builtin/apply.c +++ b/builtin/apply.c @@ -210,6 +210,7 @@ static void free_patch(struct patch *patch) free(patch->def_name); free(patch->old_name); free(patch->new_name); + free(patch->result); free(patch); }