summaryrefslogtreecommitdiff
path: root/deps/hiredis
diff options
context:
space:
mode:
Diffstat (limited to 'deps/hiredis')
-rw-r--r--deps/hiredis/sds.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/deps/hiredis/sds.c b/deps/hiredis/sds.c
index 32d103d30..95454e997 100644
--- a/deps/hiredis/sds.c
+++ b/deps/hiredis/sds.c
@@ -390,6 +390,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(ap);
if (buf[buflen-2] != '\0') {
if (buf != staticbuf) zfree(buf);
buflen *= 2;