build: fix memory leaks
commit60a932b36804bff8b6ca40adc665a33a59475db1
authorSpencer Oliver <spen@spen-soft.co.uk>
Mon, 13 Aug 2012 10:22:35 +0000 (13 11:22 +0100)
committerFreddie Chopin <freddie.chopin@gmail.com>
Fri, 24 Aug 2012 16:49:56 +0000 (24 16:49 +0000)
treee3a087a3aa6fe883aea25d7f95d5bb05cce68fcd
parentfb525cdd76982b1abf69974f3ed9327876df0036
build: fix memory leaks

Fix the memory leaks found by clang-3.1

Change-Id: Iaae68627ef599c324c9c9ee5737c22e92512862d
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/775
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
src/flash/mflash.c
src/flash/nand/lpc3180.c
src/flash/nor/at91sam7.c
src/rtos/FreeRTOS.c
src/rtos/linux.c
src/rtos/rtos.c
src/server/gdb_server.c