diff options
author | Richard Fuchs <rfuchs@sipwise.com> | 2013-07-02 12:41:13 -0400 |
---|---|---|
committer | Richard Fuchs <rfuchs@sipwise.com> | 2013-07-02 12:41:13 -0400 |
commit | b15650e13a1ef106bd6a0d8b062360e8a9346ae0 (patch) | |
tree | 42f0c5c124a6d6d51391e2553cf25f24527eee19 | |
parent | bcf83543762577a9b0f5625c848b7061cc980f30 (diff) |
va_copy must be followed by va_end
-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; |