+#if NO_LEAKS
+ /*
+ * ncurses' tgetent() interface caches some entries and its no-leaks
+ * code discards those. The calls to setupterm() on the other hand
+ * are not cached, and each call allocates a chunk of memory, even
+ * if the same terminal type is requested repeatedly.
+ */
+ while (my_screens != 0) {
+ MYSCR *next = my_screens->next;
+ del_curterm(my_screens->term);
+ free(my_screens);
+ my_screens = next;
+ }