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

Memory leak in "begin" #24

Open
RenX313 opened this issue Oct 30, 2024 · 0 comments
Open

Memory leak in "begin" #24

RenX313 opened this issue Oct 30, 2024 · 0 comments

Comments

@RenX313
Copy link

RenX313 commented Oct 30, 2024

I have the need to reset/change filters after first initialization. Since there is no function for that, I simply call begin again.
Here I realized that if I run begin too often I run out of memory. Seems like begin allocates memory for the filters.

Line 403 in ACAN2517.cpp:
mCallBackFunctionArray = new ACANCallBackRoutine [inFilters.filterCount ()] ;

Does not look good.

@RenX313 RenX313 changed the title Resetting the Controlller/setting Filters after "begin"/memory leak in "begin" Memory leak in "begin" Oct 30, 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

No branches or pull requests

1 participant