Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leaks when calling C.CString #2

Open
bduffany opened this issue Oct 10, 2022 · 0 comments
Open

Memory leaks when calling C.CString #2

bduffany opened this issue Oct 10, 2022 · 0 comments

Comments

@bduffany
Copy link

bduffany commented Oct 10, 2022

I found a memory leak in https://github.com/buildbuddy-io/buildbuddy/pull/2686/files in the way we were calling C.clonefile, and was curious if anybody else on GitHub was using the same problematic code pattern.

While searching across code on GitHub I found that this package has a few instances where C.CString is called, but C.free is not called on the result, which causes a memory leak for long-running applications:

Not sure if this package is still maintained but figured I'd report it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant