target/etm: add check for calloc error 81/5381/2
authorTomas Vanek <vanekt@fbl.cz>
Fri, 20 Dec 2019 22:50:26 +0000 (23:50 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Thu, 16 Jan 2020 09:46:27 +0000 (09:46 +0000)
commitaf0dda82666e1e4f241fabc0db62212d51413a08
treed1fffa741f11f442756fd7ed6f744418bbd0b400
parentfe6bb7eac8c7028236306c562d24a25ef79d0c15
target/etm: add check for calloc error

and fix one more clang static analyzer warning.

Change-Id: I17f03e318e1cf7617e7f753e7ca960552be547e5
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/5381
Tested-by: jenkins
Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
src/target/etm.c