X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhfree.c;h=abaeb2bd8ffe242d636628c38fd4ed99e641e91f;hp=57518015f9cdb9816c56d0a259b5bb6f9d15a373;hb=d2da15ecabb03fb2de72863abdf5f21e52fdf329;hpb=6c42153ad9362cc676ea66563bf400d7511b3b68 diff --git a/uip/mhfree.c b/uip/mhfree.c index 5751801..abaeb2b 100644 --- a/uip/mhfree.c +++ b/uip/mhfree.c @@ -15,8 +15,6 @@ #include #include -extern int errno; - /* * prototypes */ @@ -103,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) @@ -271,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) {