X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Ftinfo%2Fentries.c;h=1c55bfec0b78d6988b5749267635683653135750;hp=998205d092d0bf5c5927de723da0861a7edbf5d0;hb=c976a90788f3e50afc773670ff74c5270ecb48df;hpb=a20e6eb464be80b9cd8cae7ce925d27fe9c209ed;ds=inline diff --git a/ncurses/tinfo/entries.c b/ncurses/tinfo/entries.c index 998205d0..1c55bfec 100644 --- a/ncurses/tinfo/entries.c +++ b/ncurses/tinfo/entries.c @@ -1,5 +1,6 @@ /**************************************************************************** - * Copyright (c) 2006-2012,2017 Free Software Foundation, Inc. * + * Copyright 2019,2020 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 -MODULE_ID("$Id: entries.c,v 1.26 2017/08/04 09:01:39 tom Exp $") +MODULE_ID("$Id: entries.c,v 1.30 2020/02/02 23:34:34 tom Exp $") /**************************************************************************** * @@ -130,6 +131,7 @@ _nc_leaks_tinfo(void) _nc_forget_prescr(); _nc_comp_captab_leaks(); + _nc_comp_userdefs_leaks(); _nc_free_entries(_nc_head); _nc_get_type(0); _nc_first_name(0); @@ -147,7 +149,7 @@ _nc_leaks_tinfo(void) #ifdef TRACE T((T_RETURN(""))); - trace(0); + curses_trace(0); _nc_trace_buf(-1, (size_t) 0); #endif @@ -163,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); +}