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-06-11 13:15:07 -07:00
2024-05-21 09:07:48 -07:00
2024-06-11 13:15:04 -07:00
2024-05-07 10:06:59 -07:00
2024-06-11 13:15:08 -07:00
2024-05-20 11:20:04 -07:00
2024-03-16 09:31:42 -07:00
2024-05-06 22:50:49 -07:00
2024-06-11 13:15:05 -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-05-27 11:19:58 -07:00
2024-04-18 12:30:42 -07:00
2024-06-11 13:15:07 -07:00
2024-02-13 10:18:50 -08:00
2024-02-08 13:20:34 -08:00
2024-06-11 13:15:07 -07:00
2024-06-11 13:15:07 -07:00
2024-06-03 13:08:33 -07:00
2023-07-13 17:24:00 -07:00
2024-05-08 10:18:44 -07:00
2024-05-08 10:18:44 -07:00
2024-04-16 22:39:06 -07:00
2024-05-27 11:20:01 -07:00
2024-05-17 10:33:39 -07:00
2023-12-26 12:04:31 -08:00
2023-12-26 12:04:31 -08:00
2024-04-18 12:30:42 -07:00
2024-05-06 22:50:49 -07:00
2024-06-11 13:15:06 -07:00
2024-02-12 09:32:41 -08:00
2024-05-20 11:20:04 -07:00
2024-05-30 14:15:13 -07:00
2024-06-11 13:15:04 -07:00
2024-05-15 07:30:52 -07:00
2024-04-24 10:46:03 -07:00
2024-05-07 10:06:59 -07:00
2023-12-26 12:04:33 -08:00
2024-05-17 10:33:39 -07:00
2023-12-26 12:04:31 -08:00
2024-06-11 13:15:05 -07:00
2024-05-21 09:05:13 -07:00
2023-12-26 12:04:31 -08:00
2024-03-02 11:12:16 -08:00
2024-04-19 12:38:42 +02:00
2024-05-23 11:04:27 -07:00
2024-06-11 13:15:06 -07:00
2024-03-25 11:59:24 -07:00
2024-01-08 14:05:15 -08:00
2024-06-11 13:15:05 -07:00
2023-12-26 12:04:31 -08:00
2024-02-29 08:06:01 -08:00
2023-11-22 14:23:06 +09:00
2024-04-18 12:30:42 -07:00
2024-06-11 13:15:06 -07:00
2024-06-11 13:15:08 -07:00
2024-06-11 13:15:08 -07:00
2023-12-26 12:04:33 -08:00
2024-06-11 13:15:04 -07:00
2024-05-27 11:20:03 -07:00
2024-05-07 10:06:59 -07:00
2024-05-20 11:20:04 -07:00
2024-05-30 14:15:13 -07:00
2024-03-25 09:54:07 -07:00
2024-05-21 09:05:13 -07:00
2024-05-16 10:10:14 -07:00
2024-02-08 16:22:10 -08:00
2023-12-26 12:04:31 -08:00
2024-04-18 12:30:42 -07:00
2024-05-27 11:20:00 -07:00
2024-05-27 11:20:00 -07:00
2024-05-17 10:33:39 -07:00
2024-05-30 14:15:13 -07:00
2024-06-03 13:08:33 -07:00
2024-05-30 14:15:13 -07:00
2024-06-11 13:15:07 -07:00
2023-12-26 12:04:31 -08:00
2024-05-16 10:10:14 -07:00
2024-06-11 13:15:05 -07:00
2024-06-11 13:15:05 -07:00
2024-03-25 16:45:41 -07:00
2024-04-18 12:30:42 -07:00
2024-02-08 16:22:10 -08:00
2024-06-11 13:15:06 -07:00
2024-05-07 10:06:59 -07:00
2024-05-17 10:33:39 -07:00
2024-06-11 13:15:04 -07:00
2024-06-11 13:15:07 -07:00
2024-03-12 13:28:10 -07:00
2024-05-17 10:33:38 -07:00
2024-05-20 11:20:04 -07:00
2024-05-20 11:20:04 -07:00
2024-03-02 11:12:16 -08:00
2024-05-17 10:33:38 -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
2023-12-26 12:04:31 -08:00
2023-12-26 12:04:31 -08:00
2024-06-03 13:08:33 -07:00
2024-04-18 12:30:42 -07:00