summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index b508310..15a6d05 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -175,6 +175,8 @@ int cmark_strbuf_vprintf(cmark_strbuf *buf, const char *format, va_list ap)
format, args
);
+ va_end(args);
+
if (len < 0) {
free(buf->ptr);
buf->ptr = cmark_strbuf__oom;