]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - fd.c
mood: Clear the score table on attribute changes.
[paraslash.git] / fd.c
diff --git a/fd.c b/fd.c
index 133f5d3baef49a0d600c4fd0f03ac2b20692631b..20dc07da16e49bcfc13df2a649f0c616755f889b 100644 (file)
--- a/fd.c
+++ b/fd.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2006-2012 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2006-2013 Andre Noll <maan@systemlinux.org>
  *
  * 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;