diff options
author | Alison Chaiken <alison@she-devel.com> | 2017-09-26 17:42:28 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-10-06 18:28:19 +0300 |
commit | 18030d04d25d7c08d3deff85881772a520d84d49 (patch) | |
tree | cbae450ffee044c82ef8b93a37eeb5fbdaedf189 /cmd/console.c | |
parent | 7c890f149dca077c05114e89bc6f05dc34e62c92 (diff) | |
download | u-boot-18030d04d25d7c08d3deff85881772a520d84d49.tar.xz |
GPT: fix memory leaks identified by Coverity
Create a common exit for most of the error handling code in
do_rename_gpt_parts. Delete the list elements in disk_partitions
before calling INIT_LIST_HEAD from get_gpt_info() a second time.
The SIZEOF_MISMATCH error is not addressed, since that problem was
already fixed by "GPT: incomplete initialization in
allocate_disk_part".
Signed-off-by: Alison Chaiken <alison@peloton-tech.com>
Reported-by: Coverity (CID: 167222, 167235, 167237)
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'cmd/console.c')
0 files changed, 0 insertions, 0 deletions