chiark / gitweb /
struct/dstr-putf.c: Fix typo in commentary.
[mLib] / struct / dstr-putf.c
index 9ac8cf9361c09ea4472762e216dd93936edb3448..0ff4fb123c351218f0b1e12f75db00267d0783e3 100644 (file)
@@ -202,7 +202,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 +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);
 }