Blame SOURCES/ncurses-setup.patch

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