]> diplodocus.org Git - nmh/blobdiff - uip/mhfree.c
Look at post instead of inc to determine build options in build_nmh.
[nmh] / uip / mhfree.c
index cf9e548e1fc0ed19bcca2be6a3cb5ff98bf90635..2328b78a56c3251c1ad1032c2ee15f0da655a823 100644 (file)
@@ -262,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);
@@ -279,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;
     }
 }