Re: [PATCH 2/2] kern: Ensure that parser allocated memory is not leaked

2022-03-16 Thread Daniel Kiper
On Wed, Mar 16, 2022 at 05:25:05PM +, Darren Kenny wrote: > While it would appear unlikely that the memory allocated in *argv in > grub_parser_split_cmdline() would be leaked, we should try ensure that > it doesn't leak by calling grub_free() before we return from > grub_rescue_parse_line(). >

[PATCH 2/2] kern: Ensure that parser allocated memory is not leaked

2022-03-16 Thread Darren Kenny
While it would appear unlikely that the memory allocated in *argv in grub_parser_split_cmdline() would be leaked, we should try ensure that it doesn't leak by calling grub_free() before we return from grub_rescue_parse_line(). To avoid a possible double-free, grub_parser_split_cmdline() is being c