diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-03-27 23:50:53 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-03-27 23:51:30 +0200 |
commit | 68bd107c6db941ec7b22f3e491e314041a95224b (patch) | |
tree | 1f7c69602a2b7637e6e760484a9fa7e87e8c6106 /src | |
parent | dec80e1cffa162ba0e1cd8e6ee66c7784fe79b87 (diff) | |
download | riscv-openocd-68bd107c6db941ec7b22f3e491e314041a95224b.zip riscv-openocd-68bd107c6db941ec7b22f3e491e314041a95224b.tar.gz riscv-openocd-68bd107c6db941ec7b22f3e491e314041a95224b.tar.bz2 |
command: fix leak when executing commands
found via valgrind, not observed/reported.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/helper/command.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/helper/command.c b/src/helper/command.c index 85d9463..b00a231 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -723,6 +723,7 @@ int command_run_linef(struct command_context *context, const char *format, ...) if (string != NULL) { retval = command_run_line(context, string); + free(string); } va_end(ap); return retval; |