]> diplodocus.org Git - nmh/blobdiff - uip/mhfree.c
Fixed leak in content_charset(): if get_param() found the charset,
[nmh] / uip / mhfree.c
index f2726d0fa88b3f46d22f356aa3ed2ae24fb7c99b..89829be249eb34330b0615795c8662b5139992d8 100644 (file)
@@ -307,9 +307,10 @@ freects_done (int status)
 {
     CT *ctp;
 
-    if ((ctp = cts))
-       for (; *ctp; ctp++)
-           free_content (*ctp);
+    for (ctp = cts; ctp && *ctp; ctp++)
+       free_content (*ctp);
+
+    free (cts);
 
     exit (status);
 }