diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-12-31 11:04:46 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-12-31 11:04:46 -0800 |
commit | 4cf38a5569d937142609441a27abf0edb9023da4 (patch) | |
tree | eb3e9f177bd4f9bbcc15deabc9c764e421c59972 /src/buffer.c | |
parent | 834266acfdb2aa63e07ae03b08ae11ca21e00dcf (diff) | |
parent | e8a994cddc17eabaa415c73d970205aa489a756c (diff) |
Merge pull request #256 from nwellnhof/windows_fixes
Windows fixes
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index b508310..87d817b 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -5,6 +5,7 @@ #include <stdio.h> #include <stdlib.h> +#include "config.h" #include "cmark_ctype.h" #include "buffer.h" @@ -175,6 +176,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; |