tcl: fix potential memory leaks
commit2d57e80801b605833118e133c79a97b67ace7e93
authorSpencer Oliver <spen@spen-soft.co.uk>
Mon, 13 Aug 2012 10:31:54 +0000 (13 11:31 +0100)
committerFreddie Chopin <freddie.chopin@gmail.com>
Fri, 24 Aug 2012 16:50:18 +0000 (24 16:50 +0000)
tree1f76b2270e69387f6161ebe0e1da5eecbe2bbb62
parent60a932b36804bff8b6ca40adc665a33a59475db1
tcl: fix potential memory leaks

Reorder to allocate all memory after COMMAND_PARSE_NUMBER call.
This removes a clang warning about un-released memory

Change-Id: I8dbeb664a6467077157015bd879bc0aefc5e8614
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/776
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
src/flash/nor/tcl.c