diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-02-09 09:03:16 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-02-09 09:03:16 -0800 |
commit | fdbdbf7ecc8597d2b6ae329ecbdabebaf0793fba (patch) | |
tree | 43b5e0669002c9292db7c8249bf9b55a7ada5082 /api_test | |
parent | 71ef02503ebbd82497920ecc7d580c480865c47a (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.c | 4 |
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); } |