apply: free patch->result
authorJunio C Hamano <gitster@pobox.com>
Wed, 21 Mar 2012 22:21:32 +0000 (15:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 Mar 2012 22:41:22 +0000 (15:41 -0700)
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 <gitster@pobox.com>
builtin/apply.c
index 28668c889a70585825bf24c78105576790a4f018..c65fb3f8dad04b22f5357e019eb87fa4d0d47bfe 100644 (file)
@@ -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);
 }