Deinit function in ble

Every single iteration of the init/deinit loop is leaking ~1k, and I could'nt find any other way to fix this. My initial problem is based on this memory leak, I think you could help me with this.
i have attached my program file
asset_tracking_v2_06_1_22.ino (27.1 KB)

Thanks in advance

Hello

static void deinit(bool release_memory = false);

Try set the parameter to true

thanks for the solution but i am very new at this platform .so please tell me in detail where i have to do it in library .......
Thanks for your responce

In your code at line 412 there is BLEDevice::deinit();, try change it to BLEDevice::deinit( true );

Thanks for the solution but i allready tried that it didnt work for me.....