summaryrefslogtreecommitdiff
path: root/src/diff_print.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-06-26 18:31:39 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2015-06-26 18:31:39 +0200
commit9568660f626e314651d550ed8a06ac17e750a02d (patch)
treecbbde77724713f62c7f61014d8a1e6d8f7b7e617 /src/diff_print.c
parent354268ca488fc89346d5874b446510f0cc89c007 (diff)
downloadlibgit2-9568660f626e314651d550ed8a06ac17e750a02d.tar.gz
diff: fix leaks in diff printing
Diffstat (limited to 'src/diff_print.c')
-rw-r--r--src/diff_print.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/diff_print.c b/src/diff_print.c
index c58698368..546488c2f 100644
--- a/src/diff_print.c
+++ b/src/diff_print.c
@@ -578,6 +578,9 @@ int git_diff_print(
giterr_set_after_callback_function(error, "git_diff_print");
}
+ git__free(pi.nfile);
+ git__free(pi.ofile);
+
git_buf_free(&buf);
return error;