NetBSD/lib/libterminfo
christos 8b22ec00d4 - if we are freeing cur_term, set it to NULL.
- preserve and free "last" properly.

$ cat foo.c
#include <stdio.h>
#include <termcap.h>

int
main(void)
{
	tgetent(NULL, "dumb");
	tgetent(NULL, "network");
	tgetflag("so");
	return 0;
}
$ cc foo.c -lterminfo
$ MALLOC_OPTIONS=J ./a.out
Boom.

XXX: pullup-7
2016-04-01 19:59:08 +00:00
..
Makefile
Makefile.hash
compile.c
curterm.c - if we are freeing cur_term, set it to NULL. 2016-04-01 19:59:08 +00:00
genhash
genman
genterms
genthash
setupterm.c
shlib_version
term.c Always copy the area buffer, even when the length was the same 2015-11-26 01:03:22 +00:00
term.h
term_private.h
termcap.3
termcap.c - if we are freeing cur_term, set it to NULL. 2016-04-01 19:59:08 +00:00
termcap.h
termcap_map.c
terminfo.3
terminfo.5.in
ti.c
tparm.c We have the max length; use snprintf. 2015-11-25 18:46:59 +00:00
tputs.c