X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhfree.c;h=abaeb2bd8ffe242d636628c38fd4ed99e641e91f;hp=aef86cd84ac42f5c0ad582618de2a19080553aa6;hb=d2da15ecabb03fb2de72863abdf5f21e52fdf329;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b diff --git a/uip/mhfree.c b/uip/mhfree.c index aef86cd..abaeb2b 100644 --- a/uip/mhfree.c +++ b/uip/mhfree.c @@ -4,6 +4,10 @@ * -- 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. */ #include @@ -11,8 +15,6 @@ #include #include -extern int errno; - /* * prototypes */ @@ -99,6 +101,8 @@ free_content (CT ct) free (ct->c_id); if (ct->c_descr) free (ct->c_descr); + if (ct->c_dispo) + free (ct->c_dispo); if (ct->c_file) { if (ct->c_unlink) @@ -267,6 +271,7 @@ free_encoding (CT ct, int toplevel) if (ce->ce_unlink) unlink (ce->ce_file); free (ce->ce_file); + ce->ce_file = NULL; } if (toplevel) {