diff options
| author | Tom Rini <[email protected]> | 2020-01-21 11:53:38 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2020-01-30 13:30:35 -0500 |
| commit | 5749faa3d6837d6dbaf2119fc3ec49a326690c8f (patch) | |
| tree | d92ce80d2c27e3ded3a7a75133715602cbbbabb1 /scripts | |
| parent | e7ab1cb3f0421ad8e8435a8258790e238c623ea2 (diff) | |
cmd/gpt: Address error cases during gpt rename more correctly
New analysis by the tool has shown that we have some cases where we
weren't handling the error exit condition correctly. When we ran into
the ENOMEM case we wouldn't exit the function and thus incorrect things
could happen. Rework the unwinding such that we don't need a helper
function now and free what we may have allocated.
Fixes: 18030d04d25d ("GPT: fix memory leaks identified by Coverity")
Reported-by: Coverity (CID: 275475, 275476)
Cc: Alison Chaiken <[email protected]>
Cc: Simon Goldschmidt <[email protected]>
Cc: Jordy <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
Reviewed-by: Simon Goldschmidt <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
