summaryrefslogtreecommitdiff
path: root/builtin/apply.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-03-21 22:21:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-03-27 22:41:22 (GMT)
commit8192a2fafcd69fe1cad2fe84c99b03c63393c117 (patch)
treef169830c0413247a091af51d2f1f381078cdead7 /builtin/apply.c
parent5c8774330f5cc7a5e9a4f9e016e06bea6814d8b5 (diff)
downloadgit-8192a2fafcd69fe1cad2fe84c99b03c63393c117.zip
git-8192a2fafcd69fe1cad2fe84c99b03c63393c117.tar.gz
git-8192a2fafcd69fe1cad2fe84c99b03c63393c117.tar.bz2
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 <gitster@pobox.com>
Diffstat (limited to 'builtin/apply.c')
-rw-r--r--builtin/apply.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/apply.c b/builtin/apply.c
index 28668c8..c65fb3f 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);
}