Open
Description
I've been experimenting with a version of Miri that can execute foreign functions. It interprets the LLVM bytecode that is produced during a crate's build process. We're hoping our results can assist with the Krabcake project.
Miri found a memory leak in the test case basic_api
test test::basic_api ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
error: memory leaked: alloc24934 (C heap, size: 64, align: 16)
It seems like the memory allocated by the function cmark_markdown_to_html
is never freed. A fix for this may be more involved, though, since there doesn't seem to be a corresponding function in the C API to free memory allocated by this function. Since example in libcmark/cmark/api_test/cplusplus.cpp
just uses free
.
Metadata
Metadata
Assignees
3270
No labelsLabels
No labels