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

[examples] Fix memory leak in C++ controller command examples #6306

Merged

Conversation

KangarooKoala
Copy link
Contributor

Fixes #6258
I also added tests to prevent something like this happening again. Strangely, when I was running locally, I couldn't get the swerve controller example to fail- Only the mecanum controller and ramsete examples would fail. Given the non-determinism associated with memory errors, it probably isn't that important (especially since the swerve controller example can clearly fail), but I thought I'd mention it.

@KangarooKoala KangarooKoala requested review from a team as code owners January 25, 2024 00:41
@PeterJohnson PeterJohnson merged commit 1016e95 into wpilibsuite:main Jan 28, 2024
25 checks passed
@KangarooKoala KangarooKoala deleted the fix-controller-command-examples branch January 28, 2024 16:47
This pull request was closed.
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.

SwerveControllerCommand Example Throws Exception when entering Autonomous (C++ only)
2 participants