summaryrefslogtreecommitdiff
path: root/src/auto
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-11-19 11:28:04 +0000
committerBram Moolenaar <Bram@vim.org>2021-11-19 11:28:04 +0000
commitb3a29558eedac9979f5276ae914934b7b7cbe06b (patch)
tree574ec81a2f889213a6d049e5a6726ac8f30185fb /src/auto
parent777175b0df8c5ec3cd30d19a2e887e661ac209c8 (diff)
downloadvim-git-b3a29558eedac9979f5276ae914934b7b7cbe06b.tar.gz
patch 8.2.3620: memory leak reported in libtlibv8.2.3620
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.
Diffstat (limited to 'src/auto')
-rwxr-xr-xsrc/auto/configure29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/auto/configure b/src/auto/configure
index cd5e59366..c7f6940c5 100755
--- a/src/auto/configure
+++ b/src/auto/configure
@@ -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