- if (!ct)
- return;
-
- /*
- * free all the header fields
- */
- free_header (ct);
-
- if (ct->c_partno)
- free (ct->c_partno);
-
- if (ct->c_vrsn)
- free (ct->c_vrsn);
-
- if (ct->c_ctline)
- free (ct->c_ctline);
-
- free_ctinfo (ct);
-
- /*
- * some of the content types have extra
- * parts which need to be freed.
- */
- switch (ct->c_type) {
- case CT_MULTIPART:
- free_multi (ct);
- break;
-
- case CT_MESSAGE:
- switch (ct->c_subtype) {
- case MESSAGE_PARTIAL:
- free_partial (ct);
- break;
-
- case MESSAGE_EXTERNAL:
- free_external (ct);
- break;
- }
- break;
-
- case CT_TEXT:
- free_text (ct);
- break;
- }
-
- if (ct->c_showproc)
- free (ct->c_showproc);
- if (ct->c_termproc)
- free (ct->c_termproc);
- if (ct->c_storeproc)
- free (ct->c_storeproc);
-
- if (ct->c_celine)
- free (ct->c_celine);
-
- /* free structures for content encodings */
- free_encoding (ct, 1);
-
- if (ct->c_id)
- free (ct->c_id);
- if (ct->c_descr)
- free (ct->c_descr);
-
- if (ct->c_file) {
- if (ct->c_unlink)
- unlink (ct->c_file);
- free (ct->c_file);
- }
- if (ct->c_fp)
- fclose (ct->c_fp);
-
- if (ct->c_storage)
- free (ct->c_storage);
- if (ct->c_folder)
- free (ct->c_folder);
-
- free (ct);
+ if (!ct)
+ return;
+
+ /*
+ ** free all the header fields
+ */
+ free_header(ct);
+
+ if (ct->c_partno)
+ free(ct->c_partno);
+
+ if (ct->c_vrsn)
+ free(ct->c_vrsn);
+
+ if (ct->c_ctline)
+ free(ct->c_ctline);
+
+ free_ctinfo(ct);
+
+ /*
+ ** some of the content types have extra
+ ** parts which need to be freed.
+ */
+ switch (ct->c_type) {
+ case CT_MULTIPART:
+ free_multi(ct);
+ break;
+
+ case CT_MESSAGE:
+ switch (ct->c_subtype) {
+ case MESSAGE_PARTIAL:
+ free_partial(ct);
+ break;
+
+ case MESSAGE_EXTERNAL:
+ free_external(ct);
+ break;
+ }
+ break;
+
+ case CT_TEXT:
+ free_text(ct);
+ break;
+ }
+
+ if (ct->c_showproc)
+ free(ct->c_showproc);
+ if (ct->c_termproc)
+ free(ct->c_termproc);
+ if (ct->c_storeproc)
+ free(ct->c_storeproc);
+
+ if (ct->c_celine)
+ free(ct->c_celine);
+
+ /* free structures for content encodings */
+ free_encoding(ct, 1);
+
+ if (ct->c_id)
+ 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)
+ unlink(ct->c_file);
+ free(ct->c_file);
+ }
+ if (ct->c_fp)
+ fclose(ct->c_fp);
+
+ if (ct->c_storage)
+ free(ct->c_storage);
+ if (ct->c_folder)
+ free(ct->c_folder);
+
+ free(ct);