Commit ce7f1bfe20d1ce7201723f61085784cffd60e7e7

Stefan Sperling 2018-07-13T10:26:08

fix a mem leak in blame_commit()

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/lib/blame.c b/lib/blame.c
index 291585b..046ea38 100644
--- a/lib/blame.c
+++ b/lib/blame.c
@@ -233,6 +233,7 @@ blame_commit(struct got_blame *blame, struct got_object_id *id,
 
 	if (changes) {
 		err = blame_changes(blame, changes, id, cb, arg);
+		got_diff_free_changes(changes);
 	} else if (cb)
 		err = cb(arg, blame->nlines, -1, id);
 done: