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

Fix DmaAllocator memory leak when closing camera #888

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

will-v-pi
Copy link
Collaborator

When closing the camera, the allocator was not closing the open file descriptors, causing a memory leak. Fixed by closing the file descriptors and deleting the allocator when closing the camera.

Fixes #887

@davidplowman
Copy link
Collaborator

Looks like it's just timing out. We could either increase the timeout, or shorten the new test a bit!

@will-v-pi
Copy link
Collaborator Author

Probably better to shorten the test - I'll see if configuring a larger config can make the leak occur sooner

When closing the camera, the allocator was not closing the open file
descriptors, causing a memory leak. Fixed by closing the file
descriptors and deleting the allocator when closing the camera.

Signed-off-by: William Vinnicombe <[email protected]>
@davidplowman davidplowman merged commit 6d72d09 into raspberrypi:next Dec 11, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants