diff --git a/src/treesit.c b/src/treesit.c index 5994f6c263d..b0b20e8b255 100644 --- a/src/treesit.c +++ b/src/treesit.c @@ -1361,7 +1361,7 @@ is nil, the PARSER is to parse the whole buffer. */) /* Although XFIXNUM could signal, it should be impossible because we have checked the input by treesit_check_range_argument. So there is no need for unwind-protect. */ - free (treesit_ranges); + xfree (treesit_ranges); } if (!success)