961acd7fc2
until the problem gets addressed properly. The following fix is a stopgap measure to stop the leaking :-( I fixed the t_getstr() memory leak problem, but that instantly revealed a problem in t_agetstr() which is an extremely broken interface. It realloc's memory, potentially moving the area where it returned pointers into in previous calls. This function needs to be removed and or changed. I added a horrible work-around for now, but I will revisit the problem shortly. In the meantime nobody should be using the t_agetstr() API, and I'll be fixing the rest of the programs and or the API when I figure out the best solution... This is t_agetstr() is used by: games/hack/hack.termcap.c games/larn/io.c games/tetris/screen.c lib/libterm/termcap.c lib/libterm/termcap.h libexec/getty/main.c usr.bin/top/screen.c usr.bin/ul/ul.c |
||
---|---|---|
.. | ||
TEST | ||
Makefile | ||
pathnames.h | ||
shlib_version | ||
termcap.3 | ||
termcap.c | ||
termcap.h | ||
termcap_private.h | ||
tgoto.c | ||
tputs.c |