projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7dae58
)
efi_loader: memory leak in efi_dump_single_var()
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Tue, 19 Mar 2019 17:44:05 +0000
(18:44 +0100)
committer
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Wed, 20 Mar 2019 17:16:53 +0000
(18:16 +0100)
A misplaced return statement lead to a memory leak in
efi_dump_single_var().
Reported-by: Coverity (CID 185829)
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
cmd/nvedit_efi.c
patch
|
blob
|
history
diff --git
a/cmd/nvedit_efi.c
b/cmd/nvedit_efi.c
index ca32566a6153b0226860649dec508c43f3e6db27..e65b38dbf399b9fbb22969de561b3abb2d215d04 100644
(file)
--- a/
cmd/nvedit_efi.c
+++ b/
cmd/nvedit_efi.c
@@
-80,7
+80,6
@@
static void efi_dump_single_var(u16 *name, efi_guid_t *guid)
printf(", DataSize = 0x%zx\n", size);
print_hex_dump(" ", DUMP_PREFIX_OFFSET, 16, 1, data, size, true);
- return;
out:
free(data);
}