summaryrefslogtreecommitdiff
path: root/diffcore.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-11-28 12:13:45 +0900
committerJunio C Hamano <gitster@pobox.com>2022-11-28 12:13:46 +0900
commit613999cc5c951bc2c078caad59e339243f119a6e (patch)
treebf60befea6698e410499e2e7cacdc93a48cf9967 /diffcore.h
parent91c43cde25852e91245c2e801b9153aff5f67c6a (diff)
parent586d8b5052f6b98c262c872f54216e39f3d56625 (diff)
downloadgit-613999cc5c951bc2c078caad59e339243f119a6e.tar.xz
Merge branch 'sg/plug-line-log-leaks'
A handful of leaks in the line-log machinery have been plugged. * sg/plug-line-log-leaks: diff.c: use diff_free_queue() line-log: free the diff queues' arrays when processing merge commits line-log: free diff queue when processing non-merge commits
Diffstat (limited to 'diffcore.h')
-rw-r--r--diffcore.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/diffcore.h b/diffcore.h
index badc2261c2..9b588a1ee1 100644
--- a/diffcore.h
+++ b/diffcore.h
@@ -162,6 +162,7 @@ struct diff_filepair *diff_queue(struct diff_queue_struct *,
struct diff_filespec *,
struct diff_filespec *);
void diff_q(struct diff_queue_struct *, struct diff_filepair *);
+void diff_free_queue(struct diff_queue_struct *q);
/* dir_rename_relevance: the reason we want rename information for a dir */
enum dir_rename_relevance {