summaryrefslogtreecommitdiff
path: root/src/patch.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-09-24 10:32:15 -0400
committerEdward Thomson <ethomson@github.com>2016-05-26 13:01:07 -0500
commit4117a2350f87456d76659d9327193bb708187ba9 (patch)
treecd15f610dda604355ec3755a2ffb0c95cc545a8d /src/patch.c
parent6278fbc5dd5467e3f66f31dc9c4bb4a1a3519ba5 (diff)
downloadlibgit2-4117a2350f87456d76659d9327193bb708187ba9.tar.gz
patch parse: dup the patch from the callers
Diffstat (limited to 'src/patch.c')
-rw-r--r--src/patch.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/patch.c b/src/patch.c
index f05cfb21a..e14ffa9c0 100644
--- a/src/patch.c
+++ b/src/patch.c
@@ -196,12 +196,6 @@ int git_patch_get_line_in_hunk(
static void git_patch__free(git_patch *patch)
{
- git_array_clear(patch->lines);
- git_array_clear(patch->hunks);
-
- git__free((char *)patch->binary.old_file.data);
- git__free((char *)patch->binary.new_file.data);
-
if (patch->free_fn)
patch->free_fn(patch);
}