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

pointcloud: fix memory leak in point cloud destructor #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fgavioli
Copy link

@fgavioli fgavioli commented Oct 4, 2022

Hi @botforge, amazing project, thanks for sharing.

Type:
Bugfix: memory leak.

Description:
This PR fixes a memory leak in pointcloud.cu which can result in out-of-memory crashes.
This should solve issue #7.

Solution:
Add a cudaFree(dev_matches) call to the pointcloud destructor to free the memory pointed by dev_matches.

Co-Authored-by: Federico Gavioli f.gavioli97@gmail.com
Co-Authored-by: Antonio Russo 270201@studenti.unimore.it
Signed-off-by: Federico Gavioli f.gavioli97@gmail.com

Co-Authored-by: Antonio Russo <270201@studenti.unimore.it>
Co-Authored-by: Federico Gavioli <f.gavioli97@gmail.com>
Signed-off-by: Federico Gavioli <f.gavioli97@gmail.com>
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.

None yet

1 participant