diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2009-12-05 14:40:06 -0800 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2009-12-05 14:40:06 -0800 |
commit | dd9d1a3459f7b38e2af99bdbafd322cacc9dacc2 (patch) | |
tree | 33219999ffbd1aa191ff1a5262364f962a9d60cd /src/svf | |
parent | 12b67a2b41557160b8daa23305cbc30a349588c1 (diff) | |
download | riscv-openocd-dd9d1a3459f7b38e2af99bdbafd322cacc9dacc2.zip riscv-openocd-dd9d1a3459f7b38e2af99bdbafd322cacc9dacc2.tar.gz riscv-openocd-dd9d1a3459f7b38e2af99bdbafd322cacc9dacc2.tar.bz2 |
misc code review updates
More updates from the code review by Steve Grubb <sgrubb@redhat.com>.
The Jim float-comparision bug just gets a comment not a fix, though.
Cc: Steve Grubb <sgrubb@redhat.com>.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/svf')
-rw-r--r-- | src/svf/svf.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/svf/svf.c b/src/svf/svf.c index e6d842b..1c746f3 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 { |