]> git.sur5r.net Git - openocd/commit
fix memory leaks
authorSergey Borshch <sb-sf@users.sourceforge.net>
Wed, 19 Sep 2012 07:07:36 +0000 (10:07 +0300)
committerSpencer Oliver <spen@spen-soft.co.uk>
Wed, 31 Oct 2012 10:24:08 +0000 (10:24 +0000)
commitfc302a025270ee6e1099aa58c1c833b0d080e4ce
treeefd18295520b1f8ce7f4b4e0c4716a2cce304bf3
parent6663a788a53ee38f2d6950fe7802eae7855e01f3
fix memory leaks

if add_connection() fails, memory allocated in copy_command_context() is lost.

Signed-off-by: Sergey Borshch <sb-sf@users.sourceforge.net>
Change-Id: I91a2757f29612038031eb8953100faa3b850d3a6
Reviewed-on: http://openocd.zylin.com/836
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/server/server.c