CUDA-ScanMatcher-ICP
CUDA-ScanMatcher-ICP copied to clipboard
pointcloud: fix memory leak in point cloud destructor
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]