]> git.sur5r.net Git - openocd/commit
gdb_server: do not copy feature names for tdesc generation
authorPaul Fertser <fercerpav@gmail.com>
Fri, 7 Mar 2014 06:45:31 +0000 (10:45 +0400)
committerSpencer Oliver <spen@spen-soft.co.uk>
Mon, 17 Mar 2014 12:42:26 +0000 (12:42 +0000)
commitd99efc9076448ed01dc2ac3ee07f6f661457739a
tree6aff79d5d031acdf51f5775fdd1e685b24568ecb
parent4c9d6038b265321be24b40f97350a17ccb634f5f
gdb_server: do not copy feature names for tdesc generation

We always have feature names defined by string literals and the
standard guarantees static storage duration for them. Hence, there's
no need duplicating and then freeing them.

Valgrind-tested.

Change-Id: I1b77f966c548e3694141c63bd8680735f0f47505
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2028
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/server/gdb_server.c