]> git.ipfire.org Git - thirdparty/grub.git/commit
util/grub-install-common: Fix memory leak in copy_all()
authorDarren Kenny <darren.kenny@oracle.com>
Tue, 26 Oct 2021 15:02:35 +0000 (15:02 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 2 Nov 2021 15:27:00 +0000 (16:27 +0100)
commite07fcea291ac8aa430db6e57d6e8e08894127fe2
tree62f1289697e3e91190f656e1c4cd71479e354e5b
parentc3f323b3f5038f742638628c2a46e2438aed4baa
util/grub-install-common: Fix memory leak in copy_all()

The copy_all() function skips a section of code using continue, but
fails to free the memory in srcf first, leaking it.

Fixes: CID 314026
Signed-off-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
util/grub-install-common.c