Skip to content

Commit 868353d

Browse files
committed
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: d837cb1 ("efi: Add debugging to efi_set_bootdev()") Signed-off-by: Heinrich Schuchardt <[email protected]>
1 parent 9897350 commit 868353d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/bootefi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ void efi_set_bootdev(const char *dev, const char *devnr, const char *path,
119119
efi_free_pool(image_tmp);
120120
}
121121
bootefi_image_path = image;
122-
log_debug("- recorded device %ls\n", efi_dp_str(device));
122+
log_debug("- boot device %pD\n", device);
123123
if (image)
124-
log_debug("- and image %ls\n", efi_dp_str(image));
124+
log_debug("- image %pD\n", image);
125125
} else {
126126
log_debug("- efi_dp_from_name() failed, err=%lx\n", ret);
127127
efi_clear_bootdev();

0 commit comments

Comments
 (0)