From 0b6205b9e7a62ca8e2031af37ea096e4e031d10e Mon Sep 17 00:00:00 2001 From: Philip Gladstone Date: Wed, 31 Jan 2024 19:45:18 -0500 Subject: [PATCH] Fix memory leak now that we can shutdown the stack --- components/modules/ble.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/modules/ble.c b/components/modules/ble.c index 64f628f1..1a7c5909 100644 --- a/components/modules/ble.c +++ b/components/modules/ble.c @@ -1063,6 +1063,9 @@ static int lble_shutdown(lua_State *L) { nimble_port_deinit(); + free_gatt_svcs(L, gatt_svr_svcs); + gatt_svr_svcs = NULL; + inited = STOPPED; return 0;