Lidong Chen 6b64f297e5 loader/xnu: Fix memory leak
In grub_xnu_load_kext_from_dir(), when the call to grub_device_open()
failed, it simply cleaned up previously allocated memory and returned
GRUB_ERR_NONE. However, it neglected to free ctx->newdirname which is
allocated before the call to grub_device_open().

Fixes: CID 473859

Signed-off-by: Lidong Chen <lidong.chen@oracle.com>
Reviewed-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2025-04-04 19:37:34 +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
2025-04-04 19:37:34 +02:00