X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/d54945fa60a6c72e49705cfdd692710720c22392..c0a87b2e2dfa156bfb4e6c0e5d43f7a582f779fc:/uip/mhfree.c diff --git a/uip/mhfree.c b/uip/mhfree.c index a0b09a06..2328b78a 100644 --- a/uip/mhfree.c +++ b/uip/mhfree.c @@ -204,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; @@ -244,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; @@ -258,10 +262,7 @@ free_external (CT ct) void free_encoding (CT ct, int toplevel) { - CE ce; - - if (!(ce = ct->c_cefile)) - return; + CE ce = &ct->c_cefile; if (ce->ce_fp) { fclose (ce->ce_fp); @@ -275,10 +276,7 @@ free_encoding (CT ct, int toplevel) ce->ce_file = NULL; } - if (toplevel) { - free ((char *) ce); - ct->c_cefile = NULL; - } else { + if (! toplevel) { ct->c_ceopenfnx = NULL; } }