Skip to content

Potential Memory Leak in mmk_stub_create_static Function #36

@RiversJin

Description

@RiversJin

Hey there,

I think I've found a memory leak in mmk_stub_create_static. It looks like name isn't getting freed when the function returns an "ENOENT" error.

This isn't a big deal for a test framework since tests don't run for long, but it does trigger a leak report when using tools like Address Sanitizer.

I think it's an easy fix and I'd like to submit a PR if that's okay with you.

Thanks!

RiversJin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions