diff options
author | Oliver Stöneberg <firewave@users.noreply.github.com> | 2018-01-21 05:24:51 +0100 |
---|---|---|
committer | Vas Crabb <cuavas@users.noreply.github.com> | 2018-01-21 15:24:51 +1100 |
commit | 4e64f9572137929ff87ef47946438366f35e886a (patch) | |
tree | e555e271b04b24df3fa9db2cee0de980456bd9fc /src/tools | |
parent | 115b7b15a85510ec6714763b67a92cc87c85ca1e (diff) |
Fixes for Coverity "Resource leak" warnings (#3089)
* lib/util/chdcd.cpp: fixed Coverity "Resource Leak" warning (nw)
* src/lib/util/chdcd.cpp: fixed more Coverity "Resource Leak" warnings (nw)
* tools/imgtool/modules/mac.cpp: fixed Coverity "Resource Leak" warnings (nw)
* devices/bus/ti99/gromport/cartridges.cpp: fixed Coverity "Resource Leak" warning (nw)
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/imgtool/modules/mac.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tools/imgtool/modules/mac.cpp b/src/tools/imgtool/modules/mac.cpp index f606451c6e1..90c68323f76 100644 --- a/src/tools/imgtool/modules/mac.cpp +++ b/src/tools/imgtool/modules/mac.cpp @@ -4485,7 +4485,10 @@ end_of_list: /* check free node count */ if (freeNodes != actualFreeNodes) - return IMGTOOLERR_CORRUPTIMAGE; + { + err = IMGTOOLERR_CORRUPTIMAGE; + goto bail; + } bail: /* free buffers */ |