summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-add-hook.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2022-11-13 10:51:42 +0200
committerEli Zaretskii <eliz@gnu.org>2022-11-13 10:51:42 +0200
commit3a5c4bdc0c079f72bad98e01f70343ba9e9b0043 (patch)
treeed93e41acadd9e13d2dba0aa329ff1b4e4472ca4 /test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-add-hook.el
parent908aab6144bf9f62dd5b2c2f1776ed177fa6d18f (diff)
downloademacs-3a5c4bdc0c079f72bad98e01f70343ba9e9b0043.tar.gz
emacs-3a5c4bdc0c079f72bad98e01f70343ba9e9b0043.tar.bz2
emacs-3a5c4bdc0c079f72bad98e01f70343ba9e9b0043.zip
Fix crash on MS-Windows due to memory-allocation problem in treesit.c
* src/treesit.c (treesit_load_language): Use 'xstrdup'/'xfree' instead of 'strdup'/'free', to prevent crashes on MS-Windows, where we must use our own implementation of 'malloc'/'free', whereas 'strdup' uses the default implementation in the MS-Windows C runtime library.
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-add-hook.el')
0 files changed, 0 insertions, 0 deletions