]> git.sur5r.net Git - openocd/commitdiff
- arg list now correctly released on error. Thanks Øyvind Harboe
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 18 Feb 2008 16:54:18 +0000 (16:54 +0000)
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 18 Feb 2008 16:54:18 +0000 (16:54 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@306 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/helper/command.c

index 8b7ad36eaaa1fe398e7e207ada11e7ff7f422927..df12ffc1b43cde99d9e978c016c0b5f8c1e083f5 100644 (file)
@@ -275,6 +275,7 @@ void command_print(command_context_t *context, char *format, ...)
                                /* gotta free up */
                                if (buffer)
                                        free(buffer);
+                               va_end(ap);
                                return;
                        }