Darren Kenny bcb59ece32 loader/xnu: Fix memory leak
The code here is finished with the memory stored in name, but it only
frees it if there curvalue is valid, while it could actually free it
regardless.

The fix is a simple relocation of the grub_free() to before the test
of curvalue.

Fixes: CID 96646

Signed-off-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2021-03-02 15:54:17 +01:00
..
2019-02-25 11:28:44 +01:00
2019-03-20 11:38:28 +01:00
2019-02-25 11:33:06 +01:00
2020-07-29 16:55:47 +02:00
2013-05-07 11:44:15 +02:00
2021-03-02 15:54:17 +01:00