+#if NO_LEAKS
+ _nc_tgetent_leaks();
+#endif
+ del_curterm(cur_term);
+ _nc_free_entries(_nc_head);
+ _nc_get_type(0);
+ _nc_first_name(0);
+#if USE_WIDEC_SUPPORT
+ FreeIfNeeded(_nc_wacs);
+#endif
+#if NO_LEAKS
+ _nc_alloc_entry_leaks();
+ _nc_captoinfo_leaks();
+ _nc_comp_scan_leaks();
+ _nc_keyname_leaks();
+ _nc_tic_expand(0, FALSE, 0);
+#endif