X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/5007fea9956f473c7b5522260994180dcd7cd9e6..a89dcc03c98d7659c53f30a4f0544fe2b424b458:/struct/dstr-putf.c diff --git a/struct/dstr-putf.c b/struct/dstr-putf.c index 9ac8cf9..e097968 100644 --- a/struct/dstr-putf.c +++ b/struct/dstr-putf.c @@ -32,7 +32,6 @@ #include #include #include -#include #include #include #include @@ -202,7 +201,7 @@ int dstr_vputf(dstr *d, const char *p, va_list *ap) /* --- Initial pass through the input, parsing format specifiers --- * * * We essentially compile the format string into a vector of @fmtspec@ - * objects, each of which represnts a chunk of literal text followed by a + * objects, each of which represents a chunk of literal text followed by a * (possibly imaginary, in the case of the final one) formatting directive. * Output then simply consists of interpreting these specifiers in order. */ @@ -536,6 +535,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); }