diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-03-19 18:44:05 +0100 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-03-20 18:16:53 +0100 |
commit | 1fd7a4764103781e424ef687034da06de3cb60b7 (patch) | |
tree | 4898780f1422ad7fb6a03ad0b309fabea5e8c2ba /cmd | |
parent | e7dae584b05feaf507c5b85a704a2c1d25abffc9 (diff) |
efi_loader: memory leak in efi_dump_single_var()
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>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/nvedit_efi.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/cmd/nvedit_efi.c b/cmd/nvedit_efi.c index ca32566a61..e65b38dbf3 100644 --- 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); } |