target/semihosting_common: fix minor memory leak 80/5380/2
authorTomas Vanek <vanekt@fbl.cz>
Fri, 20 Dec 2019 22:48:46 +0000 (23:48 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Thu, 16 Jan 2020 09:46:12 +0000 (09:46 +0000)
commitfe6bb7eac8c7028236306c562d24a25ef79d0c15
tree011252ba20647c71911e5f8cab6bc539dbeccb60
parent57afa176ce858ad6505a9a962df5d7e978d349bf
target/semihosting_common: fix minor memory leak

Reported by clang static analyzer.

Change-Id: Ie663f49d92588c0d8b502cfdd8fc34004b308066
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/5380
Reviewed-by: Liviu Ionescu <ilg@livius.net>
Tested-by: jenkins
Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
src/target/semihosting_common.c