diff options
author | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-02-18 16:54:18 +0000 |
---|---|---|
committer | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-02-18 16:54:18 +0000 |
commit | f2a5a1ce8125936f7d96254da7e1f77867b3cb7b (patch) | |
tree | 1469a1a33239033802a06a80bb3508f2716e0fd4 | |
parent | e7084a0c873c0fe4f89a4574bbe85c0014124fe2 (diff) | |
download | openocd_libswd-f2a5a1ce8125936f7d96254da7e1f77867b3cb7b.tar.gz openocd_libswd-f2a5a1ce8125936f7d96254da7e1f77867b3cb7b.tar.bz2 openocd_libswd-f2a5a1ce8125936f7d96254da7e1f77867b3cb7b.tar.xz openocd_libswd-f2a5a1ce8125936f7d96254da7e1f77867b3cb7b.zip |
- arg list now correctly released on error. Thanks Øyvind Harboe
git-svn-id: svn://svn.berlios.de/openocd/trunk@306 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-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 8b7ad36e..df12ffc1 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -275,6 +275,7 @@ void command_print(command_context_t *context, char *format, ...) /* gotta free up */ if (buffer) free(buffer); + va_end(ap); return; } |