]> git.ipfire.org Git - thirdparty/grub.git/commit
syslinux: Fix memory leak while parsing
authorDarren Kenny <darren.kenny@oracle.com>
Thu, 26 Nov 2020 15:31:53 +0000 (15:31 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 2 Mar 2021 14:54:17 +0000 (15:54 +0100)
commit95bc016dba94cab3d398dd74160665915cd08ad6
treec3aaa4cacf3ab21240044d47b4f70dd2da7a2622
parentae0f3fabeba7b393113d5dc185b6aff9b728136d
syslinux: Fix memory leak while parsing

In syslinux_parse_real() the 2 points where return is being called
didn't release the memory stored in buf which is no longer required.

Fixes: CID 176634
Signed-off-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/lib/syslinux_parse.c