Merge pull request #764 from ikrima/fix-malloc-call
fix: ts_subtree_string not using ts_malloc
This commit is contained in:
commit
135c630e92
1 changed files with 1 additions and 1 deletions
|
|
@ -902,7 +902,7 @@ char *ts_subtree_string(
|
|||
language, include_all,
|
||||
0, false, ROOT_FIELD
|
||||
) + 1;
|
||||
char *result = malloc(size * sizeof(char));
|
||||
char *result = ts_malloc(size * sizeof(char));
|
||||
ts_subtree__write_to_string(
|
||||
self, result, size,
|
||||
language, include_all,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue