xref: /freebsd/contrib/ncurses/misc/ncurses.supp (revision 1f474190)
1# $Id: ncurses.supp,v 1.8 2020/02/02 23:34:34 tom Exp $
2##############################################################################
3# Copyright 2020 Thomas E. Dickey                                            #
4# Copyright 2008 Free Software Foundation, Inc.                              #
5#                                                                            #
6# Permission is hereby granted, free of charge, to any person obtaining a    #
7# copy of this software and associated documentation files (the "Software"), #
8# to deal in the Software without restriction, including without limitation  #
9# the rights to use, copy, modify, merge, publish, distribute, distribute    #
10# with modifications, sublicense, and/or sell copies of the Software, and to #
11# permit persons to whom the Software is furnished to do so, subject to the  #
12# following conditions:                                                      #
13#                                                                            #
14# The above copyright notice and this permission notice shall be included in #
15# all copies or substantial portions of the Software.                        #
16#                                                                            #
17# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
18# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,   #
19# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL    #
20# THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER      #
21# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING    #
22# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER        #
23# DEALINGS IN THE SOFTWARE.                                                  #
24#                                                                            #
25# Except as contained in this notice, the name(s) of the above copyright     #
26# holders shall not be used in advertising or otherwise to promote the sale, #
27# use or other dealings in this Software without prior written               #
28# authorization.                                                             #
29##############################################################################
30#
31# This is a warning-suppression file for valgrind and ncurses.
32#
33# ncurses can also be configured using the --disable-leaks option, which
34# allows an application to call _nc_freeall() or _nc_free_and_exit(), to
35# free all of ncurses' "permanent" memory.
36#
37# Some of these leaks can be freed if the application does its own cleanup,
38# for example:
39#	delscreen(SP);
40#	del_curterm(cur_term);
41# However, few applications do this.
42
43{
44   ncurses_leak__nc_add_to_try
45   Memcheck:Leak
46   fun:*alloc
47   fun:_nc_add_to_try
48}
49
50{
51   ncurses_leak__nc_home_terminfo
52   Memcheck:Leak
53   fun:malloc
54   fun:_nc_home_terminfo
55}
56
57{
58   ncurses_leak__nc_init_wacs
59   Memcheck:Leak
60   fun:calloc
61   fun:_nc_init_wacs
62}
63
64{
65   ncurses_leak__nc_keyname
66   Memcheck:Leak
67   fun:calloc
68   fun:_nc_keyname
69}
70
71{
72   ncurses_leak__nc_keyname_2
73   Memcheck:Leak
74   fun:malloc
75   fun:strdup
76   fun:_nc_keyname
77}
78
79{
80   ncurses_leak__nc_printf_string
81   Memcheck:Leak
82   fun:malloc
83   fun:_nc_doalloc
84   fun:_nc_printf_string
85}
86
87{
88   ncurses_leak__nc_read_termtype
89   Memcheck:Leak
90   fun:*alloc
91   fun:_nc_read_termtype
92   fun:_nc_read_file_entry
93}
94
95{
96   ncurses_leak__nc_read_termtype_2
97   Memcheck:Leak
98   fun:*alloc
99   fun:_nc_doalloc
100   fun:_nc_read_termtype
101   fun:_nc_read_file_entry
102}
103
104{
105   ncurses_leak__nc_scroll_optimize
106   Memcheck:Leak
107   fun:*alloc
108   fun:_nc_hash_map
109   fun:_nc_scroll_optimize
110}
111
112{
113   ncurses_leak__nc_scroll_optimize_2
114   Memcheck:Leak
115   fun:*alloc
116   fun:_nc_doalloc
117   fun:_nc_scroll_optimize
118}
119
120{
121   ncurses_leak__nc_setupscreen
122   Memcheck:Leak
123   fun:calloc
124   fun:_nc_setupscreen
125   fun:newterm
126}
127
128{
129   ncurses_leak__nc_setupscreen_2
130   Memcheck:Leak
131   fun:calloc
132   fun:newwin
133   fun:_nc_setupscreen
134}
135
136{
137   ncurses_leak__nc_setupterm_1
138   Memcheck:Leak
139   fun:malloc
140   fun:strdup
141   fun:_nc_setupterm
142}
143
144{
145   ncurses_leak__nc_setupterm
146   Memcheck:Leak
147   fun:calloc
148   fun:_nc_setupterm
149}
150
151{
152   ncurses_leak__nc_setupscreen_3
153   Memcheck:Leak
154   fun:calloc
155   fun:_nc_makenew
156   fun:newwin
157   fun:_nc_setupscreen
158}
159
160{
161   ncurses_leak__nc_set_buffer
162   Memcheck:Leak
163   fun:malloc
164   fun:_nc_set_buffer
165}
166
167{
168   ncurses_leak__nc_tparm_analyze
169   Memcheck:Leak
170   fun:*alloc
171   fun:_nc_doalloc
172   fun:_nc_tparm_analyze
173}
174
175{
176   ncurses_leak__nc_trace_alloc
177   Memcheck:Leak
178   fun:*alloc
179   fun:_nc_doalloc
180   fun:_nc_trace_alloc
181}
182
183{
184   ncurses_leak_start_color
185   Memcheck:Leak
186   fun:calloc
187   fun:start_color
188}
189
190{
191   ncurses_leak_tparm
192   Memcheck:Leak
193   fun:realloc
194   fun:_nc_doalloc
195   fun:tparm
196}
197
198{
199   ncurses_leak_tparam_internal
200   Memcheck:Leak
201   fun:realloc
202   fun:_nc_doalloc
203   fun:get_space
204   fun:save_number
205   fun:tparam_internal
206}
207