Fix memory leak now that we can shutdown the stack

This commit is contained in:
Philip Gladstone 2024-01-31 19:45:18 -05:00
parent 3e4dd23f90
commit 0b6205b9e7
1 changed files with 3 additions and 0 deletions

View File

@ -1063,6 +1063,9 @@ static int lble_shutdown(lua_State *L) {
nimble_port_deinit(); nimble_port_deinit();
free_gatt_svcs(L, gatt_svr_svcs);
gatt_svr_svcs = NULL;
inited = STOPPED; inited = STOPPED;
return 0; return 0;