From b15650e13a1ef106bd6a0d8b062360e8a9346ae0 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 2 Jul 2013 12:41:13 -0400 Subject: va_copy must be followed by va_end --- sds.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sds.c b/sds.c index 0af9c67..9226799 100644 --- a/sds.c +++ b/sds.c @@ -178,6 +178,7 @@ sds sdscatvprintf(sds s, const char *fmt, va_list ap) { buf[buflen-2] = '\0'; va_copy(cpy,ap); vsnprintf(buf, buflen, fmt, cpy); + va_end(cpy); if (buf[buflen-2] != '\0') { free(buf); buflen *= 2; -- cgit v1.2.3