]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/tinfo/entries.c
ncurses 6.3 - patch 20211120
[ncurses.git] / ncurses / tinfo / entries.c
index 219ec3d1ea352a863ac8367b9ee5bdeeca89749e..c928f7ec2911aab5532f2aa5791d2b3c6e7d3725 100644 (file)
@@ -1,5 +1,6 @@
 /****************************************************************************
- * Copyright (c) 2006-2017,2019 Free Software Foundation, Inc.              *
+ * Copyright 2019-2020,2021 Thomas E. Dickey                                *
+ * Copyright 2006-2012,2017 Free Software Foundation, Inc.                  *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
  * copy of this software and associated documentation files (the            *
@@ -37,7 +38,7 @@
 
 #include <tic.h>
 
-MODULE_ID("$Id: entries.c,v 1.28 2019/12/07 20:28:55 tom Exp $")
+MODULE_ID("$Id: entries.c,v 1.32 2021/11/20 23:40:57 tom Exp $")
 
 /****************************************************************************
  *
@@ -121,7 +122,7 @@ _nc_leaks_tinfo(void)
     T((T_CALLED("_nc_free_tinfo()")));
 #if NO_LEAKS
     _nc_globals.leak_checking = TRUE;
-    _nc_free_tparm();
+    _nc_free_tparm(cur_term);
     _nc_tgetent_leaks();
 
     if (TerminalOf(CURRENT_SCREEN) != 0) {
@@ -164,3 +165,12 @@ _nc_free_tinfo(int code)
     exit(code);
 }
 #endif
+
+NCURSES_EXPORT(void)
+exit_terminfo(int code)
+{
+#if NO_LEAKS
+    _nc_leaks_tinfo();
+#endif
+    exit(code);
+}