efi_loader: memory leak in efi_set_bootdev()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 10 Jul 2022 13:46:57 +0000 (15:46 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 13 Jul 2022 18:07:07 +0000 (20:07 +0200)
commit868353daa379849953ae30f400536ff61624de54
treebb8bf778e6d5edf6985a013277c880f759725fa9
parent9897350c52196736cce1a601b172fb5ea14a75c1
efi_loader: memory leak in efi_set_bootdev()

efi_dp_str() allocates memory which should be released after use.

Use %pD printf code. Adjust message wording.

Fixes: d837cb1e3b6b ("efi: Add debugging to efi_set_bootdev()")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
cmd/bootefi.c