Taylor Blau
81e2906437
pack-objects: plug leak in read_stdin_packs()
...
The `read_stdin_packs()` function added originally via 339bce27f4
(builtin/pack-objects.c: add '--stdin-packs' option, 2021-02-22)
declares a `rev_info` struct but neglects to call `release_revisions()`
on it before returning, creating the potential for a leak.
The related change in 97ec43247c (pack-objects: declare 'rev_info' for
'--stdin-packs' earlier, 2025-06-23) carried forward this oversight and
did not address it.
Ensure that we call `release_revisions()` appropriately to prevent a
potential leak from this function. Note that in practice our `rev_info`
here does not have a present leak, hence t5331 passes cleanly before
this commit, even when built with SANITIZE=leak.
Signed-off-by: Taylor Blau <me@ttaylorr.com >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2026-03-27 13:40:39 -07:00
..
2026-03-09 14:36:55 -07:00
2026-03-12 08:30:57 -07:00
2025-07-01 14:58:24 -07:00
2026-03-05 10:04:49 -08:00
2026-02-23 13:21:19 -08:00
2026-02-20 08:13:58 -08:00
2026-02-26 07:22:53 -08:00
2026-03-12 14:09:07 -07:00
2025-07-23 08:15:18 -07:00
2025-07-23 08:15:22 -07:00
2026-02-20 08:13:58 -08:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2026-03-09 14:36:55 -07:00
2025-09-29 11:40:35 -07:00
2026-03-05 10:04:49 -08:00
2025-07-23 08:15:18 -07:00
2025-10-22 10:40:11 -07:00
2026-01-15 05:32:31 -08:00
2026-03-19 09:54:56 -07:00
2026-02-23 13:23:41 -08:00
2025-10-16 14:42:39 -07:00
2025-07-23 08:15:20 -07:00
2026-01-12 11:56:56 -08:00
2025-07-23 08:15:22 -07:00
2026-02-23 13:21:18 -08:00
2025-07-23 08:15:18 -07:00
2025-07-23 08:15:18 -07:00
2026-02-13 13:39:25 -08:00
2025-08-09 17:22:01 -07:00
2025-07-01 14:46:38 -07:00
2026-01-29 09:32:50 -08:00
2026-03-05 11:45:15 -08:00
2025-06-04 08:52:25 -07:00
2026-03-12 08:30:57 -07:00
2025-08-11 09:19:40 -07:00
2025-08-22 13:13:20 -07:00
2026-03-03 10:20:00 -08:00
2026-03-09 14:36:55 -07:00
2025-07-23 08:15:22 -07:00
2026-03-12 08:30:57 -07:00
2026-03-12 14:09:07 -07:00
2025-07-23 08:15:22 -07:00
2026-02-19 10:13:20 -08:00
2026-03-09 12:34:52 -07:00
2026-02-19 13:24:57 -08:00
2026-03-05 11:45:15 -08:00
2026-03-06 13:02:19 -08:00
2026-02-13 13:39:25 -08:00
2026-03-10 14:23:17 -07:00
2025-09-08 14:54:35 -07:00
2025-11-04 07:32:25 -08:00
2026-01-09 18:36:18 -08:00
2026-01-15 05:32:31 -08:00
2026-02-17 13:30:42 -08:00
2026-02-06 11:45:33 -08:00
2025-08-08 11:13:12 -07:00
2026-02-13 13:39:25 -08:00
2026-03-12 08:30:57 -07:00
2025-08-05 11:53:55 -07:00
2025-07-16 22:16:15 -07:00
2025-09-12 10:41:18 -07:00
2026-02-26 07:22:51 -08:00
2025-12-25 08:29:27 +09:00
2025-08-21 13:47:00 -07:00
2026-03-27 13:40:39 -07:00
2026-02-21 21:26:53 -08:00
2025-09-19 10:02:55 -07:00
2026-01-09 06:07:21 -08:00
2025-08-05 11:53:55 -07:00
2026-03-12 08:30:57 -07:00
2026-02-26 07:22:53 -08:00
2025-10-14 12:56:09 -07:00
2026-01-09 18:36:18 -08:00
2026-03-19 09:54:56 -07:00
2026-03-12 08:30:57 -07:00
2025-10-15 10:29:28 -07:00
2025-10-02 12:26:12 -07:00
2026-02-23 13:21:19 -08:00
2026-01-14 06:29:24 -08:00
2025-11-04 07:32:24 -08:00
2026-01-13 05:41:16 -08:00
2026-03-16 10:48:14 -07:00
2025-07-23 08:15:18 -07:00
2026-03-03 11:08:13 -08:00
2026-03-12 10:56:04 -07:00
2026-02-23 13:21:19 -08:00
2025-09-18 10:07:00 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2026-02-20 08:13:58 -08:00
2026-01-15 05:32:31 -08:00
2026-01-30 08:58:12 -08:00
2026-02-23 13:21:19 -08:00
2026-03-05 10:04:49 -08:00
2026-03-03 11:08:13 -08:00
2025-07-23 08:15:18 -07:00
2026-03-19 09:54:57 -07:00
2025-07-23 08:15:22 -07:00
2026-03-06 13:02:20 -08:00
2025-07-23 08:15:22 -07:00
2025-11-03 12:18:48 -08:00
2025-09-16 11:37:06 -07:00
2026-01-25 22:27:33 -08:00
2025-07-23 08:15:22 -07:00
2025-11-19 17:41:03 -08:00
2025-11-19 17:41:03 -08:00
2025-08-21 13:46:59 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2025-12-29 22:02:53 +09:00
2026-03-11 11:08:53 -07:00
2025-07-23 08:15:22 -07:00