0
0
mirror of https://github.com/vim/vim.git synced 2025-11-08 10:27:32 -05:00

patch 8.2.3620: memory leak reported in libtlib

Problem:    Memory leak reported in libtlib.
Solution:   Call del_curterm() when cleaning up memory.  Rename term.h to
            termdefs.h to avoid a name clash.
This commit is contained in:
Bram Moolenaar
2021-11-19 11:28:04 +00:00
parent 777175b0df
commit b3a29558ee
12 changed files with 338 additions and 270 deletions

29
src/auto/configure vendored
View File

@@ -12325,6 +12325,35 @@ $as_echo "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether del_curterm() can be used" >&5
$as_echo_n "checking whether del_curterm() can be used... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#ifdef HAVE_TERMCAP_H
# include <termcap.h>
#endif
#include <term.h>
int
main ()
{
if (cur_term) del_curterm(cur_term);
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }; $as_echo "#define HAVE_DEL_CURTERM 1" >>confdefs.h
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext