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/resource leak : begin_I2C uses "new" but there is no delete #15

Open
MoonCactus opened this issue Sep 7, 2024 · 0 comments
Open

Comments

@MoonCactus
Copy link

Allocation of Adafruit_I2CDevice instance is never freed (IMO there should be a class destructor to do so).
This results in memory leaks when instantiating Adafruit_PM25AQI, and possible further troubles.

Line 46 of the C source, new Adafruit_I2CDevice in Adafruit_PM25AQI::begin_I2C()

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