Re: [PATCH 5/5] loader/xnu: Fix memory leak

2025-03-27 Thread Vladimir 'phcoder' Serbinenko
Reviewed-By : Vladimir Serbinenko Le jeu. 27 mars 2025, 20:57, Lidong Chen via Grub-devel a écrit : > 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->

[PATCH 5/5] loader/xnu: Fix memory leak

2025-03-27 Thread Lidong Chen via Grub-devel
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: Lidon