]> git.sur5r.net Git - openocd/commit
cortex_a: remove memory leak on failure
authorSpencer Oliver <spen@spen-soft.co.uk>
Wed, 5 Jun 2013 19:19:11 +0000 (20:19 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Wed, 12 Jun 2013 14:41:43 +0000 (14:41 +0000)
commit3a8a6e5c3e43bbe543bc7a0a7503173e4eadf2bc
treead722205697116911bb77a32c1da48db52c46d19
parentbbc193ef8d25243a8f7e861de3a8820206939e9c
cortex_a: remove memory leak on failure

If mem_ap_sel_write_atomic_u32 fails then tmp_buff may not be released.
Detected by clang.

Change-Id: I3d5416bd47d0eea61f61ec02ac5e43c82f114108
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/1433
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
src/target/cortex_a.c