diff options
-rw-r--r-- | sds.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |