This fixes a memory leak on systems were va_copy needs to allocate
memory.
+2008-06-10 Guillem Jover <guillem@debian.org>
+
+ * lib/varbuf.c (varbufvprintf): Call va_end when done with the va_list
+ variable from va_copy.
+
2008-06-10 Guillem Jover <guillem@debian.org>
* lib/varbuf.c (varbufprintf): Use varbufvprintf instead of
varbufextend(v);
va_copy(al, va);
r= vsnprintf(v->buf+ou,v->size-ou,fmt,al);
+ va_end(al);
if (r < 0) r= (v->size-ou+1) * 2;
v->used= ou+r;
} while (r >= (int)(v->size - ou - 1));