]> git.ipfire.org Git - thirdparty/grub.git/commit
disk/ldm: Make sure comp data is freed before exiting from make_vg()
authorMarco A Benatto <mbenatto@redhat.com>
Mon, 7 Dec 2020 14:53:03 +0000 (11:53 -0300)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 2 Mar 2021 14:54:16 +0000 (15:54 +0100)
commit23e39f50ca7a107f6b66396ed4d177a914dee035
tree441f6255d232218fbf9befda20c0b998a94542e1
parentbc9c468a2ce84bc767234eec888b71f1bc744fff
disk/ldm: Make sure comp data is freed before exiting from make_vg()

Several error handling paths in make_vg() do not free comp data before
jumping to fail2 label and returning from the function. This will leak
memory. So, let's fix all issues of that kind.

Fixes: CID 73804
Signed-off-by: Marco A Benatto <mbenatto@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/disk/ldm.c