diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-12-31 14:41:43 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-12-31 14:41:43 +0100 |
commit | d605ead4bc5dc96022a3f13bdbf05d2b63da3fd4 (patch) | |
tree | 65eb966a3908048376e28866529a0df9c98899f3 /src | |
parent | 834266acfdb2aa63e07ae03b08ae11ca21e00dcf (diff) |
Add missing va_end
Diffstat (limited to 'src')
-rw-r--r-- | src/buffer.c | 2 |
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; |