]> git.sur5r.net Git - openocd/commit
target: remove handle_profile_command memory leak
authorSpencer Oliver <spen@spen-soft.co.uk>
Fri, 28 Mar 2014 11:11:13 +0000 (11:11 +0000)
committerPaul Fertser <fercerpav@gmail.com>
Sat, 29 Mar 2014 08:04:43 +0000 (08:04 +0000)
commite22bad797f6c09c9ade8b8df63ff507fb9ba900d
tree5804bbcef12a921c50be3dbbdb9228c35837a8c7
parent8b1fabd8e000f620287b5373aa149a8eeed4709b
target: remove handle_profile_command memory leak

COMMAND_PARSE_NUMBER may return, thus any memory allocated may not be
freed, simple reorder fixes the issue.

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