Avoid leak caused by earlier corpus spec failures
This commit is contained in:
parent
2f2ca401be
commit
b1c8b74e9c
1 changed files with 2 additions and 1 deletions
|
|
@ -11,8 +11,9 @@
|
|||
|
||||
static void expect_the_correct_tree(TSNode node, TSDocument *document, string tree_string) {
|
||||
const char *node_string = ts_node_string(node, document);
|
||||
AssertThat(node_string, Equals(tree_string));
|
||||
string result(node_string);
|
||||
ts_free((void *)node_string);
|
||||
AssertThat(result, Equals(tree_string));
|
||||
}
|
||||
|
||||
static void expect_a_consistent_tree(TSNode node, TSDocument *document) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue