summaryrefslogtreecommitdiff
path: root/src/svf
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-12-05 14:40:06 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-12-05 14:40:06 -0800
commitdd9d1a3459f7b38e2af99bdbafd322cacc9dacc2 (patch)
tree33219999ffbd1aa191ff1a5262364f962a9d60cd /src/svf
parent12b67a2b41557160b8daa23305cbc30a349588c1 (diff)
downloadopenocd+libswd-dd9d1a3459f7b38e2af99bdbafd322cacc9dacc2.tar.gz
openocd+libswd-dd9d1a3459f7b38e2af99bdbafd322cacc9dacc2.tar.bz2
openocd+libswd-dd9d1a3459f7b38e2af99bdbafd322cacc9dacc2.tar.xz
openocd+libswd-dd9d1a3459f7b38e2af99bdbafd322cacc9dacc2.zip
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.c9
1 files changed, 3 insertions, 6 deletions
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
{