From dd9d1a3459f7b38e2af99bdbafd322cacc9dacc2 Mon Sep 17 00:00:00 2001 From: David Brownell Date: Sat, 5 Dec 2009 14:40:06 -0800 Subject: misc code review updates More updates from the code review by Steve Grubb . The Jim float-comparision bug just gets a comment not a fix, though. Cc: Steve Grubb . Signed-off-by: David Brownell --- src/svf/svf.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/svf') diff --git a/src/svf/svf.c b/src/svf/svf.c index e6d842b7..1c746f38 100644 --- a/src/svf/svf.c +++ b/src/svf/svf.c @@ -1350,12 +1350,9 @@ static int svf_run_command(struct command_context *cmd_ctx, char *cmd_str) return ERROR_FAIL; } } - // no need to keep this memory, in jtag_add_pathmove, path will be duplicated - if (NULL != path) - { - free(path); - path = NULL; - } + + free(path); + path = NULL; } else { -- cgit v1.2.3