struct/dstr-putf.c: Don't leak the argument and spec vectors.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 18 Jan 2015 16:50:40 +0000 (16:50 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 18 Jan 2015 16:53:37 +0000 (16:53 +0000)
struct/dstr-putf.c

index 9ac8cf9..3f9b449 100644 (file)
@@ -536,6 +536,8 @@ int dstr_vputf(dstr *d, const char *p, va_list *ap)
 
   DPUTZ(d);
   DDESTROY(&dd);
+  DA_DESTROY(&av);
+  DA_DESTROY(&sv);
   return (d->len - n);
 }