aboutsummaryrefslogtreecommitdiffstats
path: root/exec/exec.c
diff options
context:
space:
mode:
authorYuan Fu2023-04-13 14:36:46 -0700
committerYuan Fu2023-04-13 15:08:51 -0700
commita5eb9f6ad4e6f5a2819b540a477f1e889f6ef355 (patch)
tree6f13df041b5e51f552ce438338ff887c2ba21029 /exec/exec.c
parentdff254946a72db1d592e6e2f71f85786e5e5bdec (diff)
downloademacs-a5eb9f6ad4e6f5a2819b540a477f1e889f6ef355.tar.gz
emacs-a5eb9f6ad4e6f5a2819b540a477f1e889f6ef355.zip
Catch signals produced by PRED in tree-sitter search functions
Earlier we switched to using cursors rather than nodes to traverse the parse tree. Because cursors need cleanup, we have to catch signals thrown by the predicate functions and free the cursor. Failing to do this will result in leaking the cursor whenever the predicate function signals in a search function. This change fixes the leak. * src/treesit.c (treesit_traverse_cleanup_cursor): New function. (Ftreesit_search_subtree) (Ftreesit_search_forward) (Ftreesit_induce_sparse_tree): Catch signals.
Diffstat (limited to 'exec/exec.c')
0 files changed, 0 insertions, 0 deletions