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 memory leak in ws_server.cu #23

Merged
merged 1 commit into from
Oct 3, 2024
Merged

fix memory leak in ws_server.cu #23

merged 1 commit into from
Oct 3, 2024

Conversation

cgpadwick
Copy link
Collaborator

Move the construction of the GpuDetector inside the main camera loop. I found this bug by noticing that the utility could only run for about 20 minutes and then the Orin would crash. After moving the declaration of GpuDetector inside the loop, the destructor is called when the object goes out of scope and cleans up the memory. I tested this by running it for 24 hours straight and seeing no adverse effects.

Copy link
Collaborator

@cwosw cwosw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and it acts good.

@cwosw cwosw merged commit 7e9998d into main Oct 3, 2024
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.

3 participants