From 44ea419e0dbe35c081bbfc4c7ab15df276b71b59 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 18 Jan 2015 16:50:40 +0000 Subject: [PATCH] struct/dstr-putf.c: Don't leak the argument and spec vectors. --- struct/dstr-putf.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.11.0