]> git.ipfire.org Git - thirdparty/git.git/commit
last-modified: fix memory leak when more than one commit is given
authorToon Claes <toon@iotcl.com>
Fri, 30 Jan 2026 14:26:36 +0000 (15:26 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 30 Jan 2026 16:57:01 +0000 (08:57 -0800)
commite2505ec170bc0861c3b902bc9763416c5f222455
tree97644d402013a3e1fb20bbe4bf29d1cd5d3af558
parent85329e31dd4c864a5a200d0a0ded886599adc2c5
last-modified: fix memory leak when more than one commit is given

When more than one commit is given, the function
populate_paths_from_revs() leaks a `struct pathspec`. Plug it.

Signed-off-by: Toon Claes <toon@iotcl.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/last-modified.c