diff options
Diffstat (limited to 'src/patch_diff.c')
-rw-r--r-- | src/patch_diff.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/patch_diff.c b/src/patch_diff.c index 1a3aeda5e..b8adcf3e1 100644 --- a/src/patch_diff.c +++ b/src/patch_diff.c @@ -25,6 +25,12 @@ static void patch_diff_free(git_patch *p) { git_patch_diff *patch = (git_patch_diff *)p; + git_array_clear(patch->base.lines); + git_array_clear(patch->base.hunks); + + git__free((char *)patch->base.binary.old_file.data); + git__free((char *)patch->base.binary.new_file.data); + git_diff_file_content__clear(&patch->ofile); git_diff_file_content__clear(&patch->nfile); |