diff options
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 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 { |