helper/command: get rid of the tree of struct command
authorAntonio Borneo <borneo.antonio@gmail.com>
Mon, 25 May 2020 14:09:12 +0000 (16:09 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 18 Apr 2021 14:34:54 +0000 (15:34 +0100)
commitfa23b1a71e4f1974791e90055c301f9bf124e835
tree468e4834e564724e0283cbd3f80dcf867490e254
parenta7d68878e4ba5dfd5ca15c058980cf6c5fc55208
helper/command: get rid of the tree of struct command

There is no need anymore to keep alive the tree of struct command.

Remove it and let jim to free() the command's struct command that
is referenced through command's private data.

Change-Id: I2cd84e0274a969ce200320e3a177ac20c7823da0
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5675
Tested-by: jenkins
Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
src/helper/command.c
src/helper/command.h