Files
git/builtin
Patrick Steinhardt 3332f35577 builtin/blame: fix leaking prefixed paths
In `cmd_blame()` we compute prefixed paths by calling `add_prefix()`,
which itself calls `prefix_path()`. While `prefix_path()` returns an
allocated string, `add_prefix()` pretends to return a constant string.
Consequently, this path never gets freed.

Fix the return type to be `char *` and free the path to plug the memory
leak.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-06-11 13:15:08 -07:00
..
2024-05-08 10:18:44 -07:00
2024-05-21 09:07:48 -07:00
2024-04-18 12:30:42 -07:00
2024-04-18 12:30:42 -07:00
2024-04-18 12:30:42 -07:00
2024-04-18 12:30:42 -07:00
2024-02-13 10:18:50 -08:00
2024-04-18 12:30:42 -07:00
2024-02-12 09:32:41 -08:00
2024-05-17 10:33:39 -07:00
2024-04-19 12:38:42 +02:00
2024-01-08 14:05:15 -08:00
2024-04-18 12:30:42 -07:00
2024-06-11 13:15:08 -07:00
2024-06-11 13:15:08 -07:00
2024-04-18 12:30:42 -07:00
2024-05-17 10:33:39 -07:00
2024-04-18 12:30:42 -07:00
2024-06-11 13:15:06 -07:00
2024-05-20 11:20:04 -07:00
2024-04-29 20:42:30 +02:00
2024-05-17 10:33:39 -07:00
2024-04-18 12:30:42 -07:00