Skip to content

Commit

Permalink
Fix memory leak now that we can shutdown the stack
Browse files Browse the repository at this point in the history
  • Loading branch information
pjsg committed Feb 1, 2024
1 parent 3e4dd23 commit 0b6205b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/modules/ble.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0b6205b

Please sign in to comment.