X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=fd.c;h=20dc07da16e49bcfc13df2a649f0c616755f889b;hb=58566e1535a0c47ce59570598885ccabc75891bf;hp=133f5d3baef49a0d600c4fd0f03ac2b20692631b;hpb=2d2ef9c2bf6e195d6e853b5234e79555974c242b;p=paraslash.git diff --git a/fd.c b/fd.c index 133f5d3b..20dc07da 100644 --- a/fd.c +++ b/fd.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2012 Andre Noll + * Copyright (C) 2006-2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -146,6 +146,7 @@ __printf_2_3 int write_va_buffer(int fd, const char *fmt, ...) va_start(ap, fmt); ret = xvasprintf(&msg, fmt, ap); + va_end(ap); ret = write_all(fd, msg, ret); free(msg); return ret;