summaryrefslogtreecommitdiff
path: root/api_test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-02-09 09:03:16 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2020-02-09 09:03:16 -0800
commitfdbdbf7ecc8597d2b6ae329ecbdabebaf0793fba (patch)
tree43b5e0669002c9292db7c8249bf9b55a7ada5082 /api_test
parent71ef02503ebbd82497920ecc7d580c480865c47a (diff)
Add cmark_get_default_mem_allocator().
API change: This adds a new exported function in cmark.h. Closes #330.
Diffstat (limited to 'api_test')
-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);
}