The first patch plugs the reported big memory leak, the second one plugs a minor leak, and the little cleanup in the third puts the cherry on top. SZEDER Gábor (3): line-log: free diff queue when processing non-merge commits line-log: free the diff queues' arrays when processing merge commits diff.c: use diff_free_queue() diff.c | 17 +++++++++-------- diffcore.h | 1 + line-log.c | 7 +++---- 3 files changed, 13 insertions(+), 12 deletions(-) -- 2.38.1.564.g99c012faba