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: http://git.tremily.us/?a=commitdiff_plain;h=8192a2fafcd69fe1cad2fe84c99b03c63393c117;p=git.git 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 --- diff --git a/builtin/apply.c b/builtin/apply.c index 28668c889..c65fb3f8d 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); }