Using new/delete within the 'on' statement causes a memory leak. #430
Closed
AchcarLucas
started this conversation in
Support
Replies: 1 comment 3 replies
-
|
OBS: https://chatgpt.com/share/69d89a37-15d0-83e9-a6c4-42782ae07540 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Platform
ESP32
IDE / Tooling
Arduino (IDE/CLI)
What happened?
I have the following code
If rawPage is created with new
Even with the delete function at the end, a memory leak still occurs.
AchcarLucas/Flow-Control-System@2ba8941
Above is the commit I had to make (converting everything to local) to remove the memory leak.
Stack Trace
Memory Leak
Minimal Reproductible Example (MRE)
Memory Leak
I confirm that:
Beta Was this translation helpful? Give feedback.
All reactions