Lidong Chen 81146fb623 loader/i386/linux: Fix resource leak
In grub_cmd_initrd(), initrd_ctx is allocated before calling
grub_relocator_alloc_chunk_align(). When that function fails,
initrd_ctx should be freed before exiting grub_cmd_initrd().

Fixes: CID 473852

Signed-off-by: Lidong Chen <lidong.chen@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2025-04-04 19:33:50 +02:00
..
2024-09-05 19:12:08 +02:00
2025-04-04 19:33:50 +02:00
2023-06-01 11:45:00 +02:00
2022-03-14 15:47:32 +01:00
2020-07-29 16:55:47 +02:00
2013-05-07 11:44:15 +02:00
2022-03-14 15:47:32 +01:00