8000 Memory leak in test case `basic_api` · Issue #3 · bnavetta/rcmark · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Memory leak in test case basic_api #3
Open
@icmccorm

Description

@icmccorm

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

No one assigned
    3270

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0