diff options
author | antirez <antirez@gmail.com> | 2014-08-26 10:05:24 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-08-26 10:05:32 +0200 |
commit | 293348d0de8776e409551bbbd72691f66cb121cf (patch) | |
tree | aae6d1c622d3c053140402db57db125a9a670d16 /deps | |
parent | 26744da0d1afb8d5a1c840e1a0764af14737acea (diff) | |
download | redis-293348d0de8776e409551bbbd72691f66cb121cf.tar.gz |
Missing va_end also added in hiredis copy of sds.c.
Diffstat (limited to 'deps')
-rw-r--r-- | deps/hiredis/sds.c | 1 |
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; |