summaryrefslogtreecommitdiff
path: root/api_test/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'api_test/main.c')
-rw-r--r--api_test/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/api_test/main.c b/api_test/main.c
index 994ee39..29346b7 100644
--- a/api_test/main.c
+++ b/api_test/main.c
@@ -320,7 +320,9 @@ static void iterator_delete(test_batch_runner *runner) {
"<p>a c</p>\n";
STR_EQ(runner, html, expected, "iterate and delete nodes");
- free(html);
+ cmark_mem *allocator = cmark_get_default_mem_allocator();
+
+ allocator->free(html);
cmark_iter_free(iter);
cmark_node_free(doc);
}