]> diplodocus.org Git - nmh/blobdiff - uip/mhfree.c
Support for locking tests in the test suite.
[nmh] / uip / mhfree.c
index 418e5c920a90ff205d86430036e61e41fa66e7ce..cf9e548e1fc0ed19bcca2be6a3cb5ff98bf90635 100644 (file)
@@ -3,8 +3,6 @@
  * mhfree.c -- routines to free the data structures used to
  *          -- represent MIME messages
  *
- * $Id$
- *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
  * complete copyright information.
@@ -21,11 +19,10 @@ CT *cts = NULL;
 /*
  * prototypes
  */
-void free_content (CT);
 void free_header (CT);
 void free_ctinfo (CT);
 void free_encoding (CT, int);
-int freects_done (int);
+void freects_done (int);
 
 /*
  * static prototypes
@@ -207,6 +204,8 @@ free_multi (CT ct)
        free (m->mp_start);
     if (m->mp_stop)
        free (m->mp_stop);
+    free (m->mp_content_before);
+    free (m->mp_content_after);
        
     for (part = m->mp_parts; part; part = next) {
        next = part->mp_next;
@@ -247,6 +246,8 @@ free_external (CT ct)
     free_content (e->eb_content);
     if (e->eb_body)
        free (e->eb_body);
+    if (e->eb_url)
+       free (e->eb_url);
 
     free ((char *) e);
     ct->c_ctparams = NULL;
@@ -287,7 +288,7 @@ free_encoding (CT ct, int toplevel)
 }
 
 
-int
+void
 freects_done (int status)
 {
     CT *ctp;
@@ -297,5 +298,4 @@ freects_done (int status)
            free_content (*ctp);
 
     exit (status);
-    return 1;  /* dead code to satisfy the compiler */
 }