Skip to content

Driver destructor not calling the HAL free functions #4204

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

Closed
dave-wu opened this issue Apr 20, 2017 · 1 comment
Closed

Driver destructor not calling the HAL free functions #4204

dave-wu opened this issue Apr 20, 2017 · 1 comment

Comments

@dave-wu
Copy link
Contributor

dave-wu commented Apr 20, 2017

C++ driver destructors do not call the HAL free functions. One example is the SPI driver, its destructor does not call the spi_free function. This causes issues when one needs to re-open the SPI for instance. The temporary workaround is to call spi_free directly from the application code however this is not ideal.

@0xc0170
Copy link
Contributor

0xc0170 commented Apr 20, 2017

Please see : #3106

I'll close this as a duplicate

@0xc0170 0xc0170 closed this as completed Apr 20, 2017
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

2 participants