CUDA-ScanMatcher-ICP icon indicating copy to clipboard operation
CUDA-ScanMatcher-ICP copied to clipboard

pointcloud: fix memory leak in point cloud destructor

Open fgavioli opened this issue 3 years ago • 0 comments

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 [email protected] Co-Authored-by: Antonio Russo [email protected] Signed-off-by: Federico Gavioli [email protected]

fgavioli avatar Oct 04 '22 14:10 fgavioli