-
-
Notifications
You must be signed in to change notification settings - Fork 204
Open
Description
There appears to be a memory leak when deinitializing NimBLEDevice.
The following code demonstrates the memory leak. This is using ESP32-C5 and NimBLE commit b425a1a
Edit: You should see available memory slowly going down until eventual crash.
Edit 2: Passing true to NimBLEDevice::deinit() does not resolve the issue.
#include <NimBLEDevice.h>
void setup() {
Serial.begin(115200);
while(!Serial) delay(100);
}
void loop() {
Serial.println(ESP.getFreeHeap());
NimBLEDevice::init("");
delay(100);
NimBLEDevice::deinit();
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels