Missing va_end also added in hiredis copy of sds.c.

This commit is contained in:
antirez 2014-08-26 10:05:24 +02:00
parent 26744da0d1
commit 293348d0de

1
deps/hiredis/sds.c vendored
View File

@ -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;