Blame SOURCES/ncurses-setup.patch

4953bd
diff --git a/ncurses/tinfo/lib_setup.c b/ncurses/tinfo/lib_setup.c
4953bd
index 3e82a38..21ee98d 100644
4953bd
--- a/ncurses/tinfo/lib_setup.c
4953bd
+++ b/ncurses/tinfo/lib_setup.c
4953bd
@@ -783,14 +783,12 @@ TINFO_SETUP_TERM(TERMINAL ** tp,
4953bd
 	if ((VALID_STRING(cursor_address)
4953bd
 	     || (VALID_STRING(cursor_down) && VALID_STRING(cursor_home)))
4953bd
 	    && VALID_STRING(clear_screen)) {
4953bd
-	    free(termp);
4953bd
 	    ret_error1(TGETENT_YES, "terminal is not really generic.\n", tname);
4953bd
 	} else {
4953bd
-	    free(termp);
4953bd
+	    del_curterm(termp);
4953bd
 	    ret_error1(TGETENT_NO, "I need something more specific.\n", tname);
4953bd
 	}
4953bd
     } else if (hard_copy) {
4953bd
-	free(termp);
4953bd
 	ret_error1(TGETENT_YES, "I can't handle hardcopy terminals.\n", tname);
4953bd
     }
4953bd
 #endif