+ free_text(ct);
+ break;
+ }
+
+ if (ct->c_charset)
+ mh_free0(&(ct->c_charset));
+ if (ct->c_showproc)
+ mh_free0(&(ct->c_showproc));
+ if (ct->c_storeproc)
+ mh_free0(&(ct->c_storeproc));
+
+ if (ct->c_celine)
+ mh_free0(&(ct->c_celine));
+
+ /* free structures for content encodings */
+ free_encoding(ct, 1);
+
+ if (ct->c_id)
+ mh_free0(&(ct->c_id));
+ if (ct->c_descr)
+ mh_free0(&(ct->c_descr));
+ if (ct->c_dispo)
+ mh_free0(&(ct->c_dispo));
+
+ if (ct->c_file) {
+ if (ct->c_unlink)
+ unlink(ct->c_file);
+ mh_free0(&(ct->c_file));
+ }
+ if (ct->c_fp)
+ fclose(ct->c_fp);
+
+ if (ct->c_storage)
+ mh_free0(&(ct->c_storage));
+ if (ct->c_folder)
+ mh_free0(&(ct->c_folder));
+
+ mh_free0(&ct);