X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=fd.c;h=ceff71f584545bb6356d38129c436e8d393fe38c;hp=b8d0d77c3ba94091d753714d54b8181ce7c395ac;hb=f167629b3191c57a6b691cd2a6af04a45a74ccb0;hpb=027f2c1237051d2d569d6be7f381c886f659bac3 diff --git a/fd.c b/fd.c index b8d0d77c..ceff71f5 100644 --- a/fd.c +++ b/fd.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2014 Andre Noll + * Copyright (C) 2006 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -10,8 +10,6 @@ #include #include #include -#include -#include #include "para.h" #include "error.h" @@ -146,6 +144,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;