From: Mark Wooding Date: Sun, 18 Jan 2015 16:50:40 +0000 (+0000) Subject: struct/dstr-putf.c: Don't leak the argument and spec vectors. X-Git-Tag: 2.2.2.1~1 X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/commitdiff_plain/44ea419e0dbe35c081bbfc4c7ab15df276b71b59?ds=sidebyside struct/dstr-putf.c: Don't leak the argument and spec vectors. --- diff --git a/struct/dstr-putf.c b/struct/dstr-putf.c index 9ac8cf9..3f9b449 100644 --- a/struct/dstr-putf.c +++ b/struct/dstr-putf.c @@ -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); }