Skip to content

Commit

Permalink
Merge branch 'bugfix/memory_cleanup_optimization' into 'master'
Browse files Browse the repository at this point in the history
Nimble: Fixes for memory leak / optimization

See merge request espressif/esp-idf!23759
  • Loading branch information
rahult-github committed May 25, 2023
2 parents 451a0f1 + 7296888 commit 1937282
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/bt/host/nimble/Kconfig.in
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ config BT_NIMBLE_HS_STOP_TIMEOUT_MS
config BT_NIMBLE_HOST_BASED_PRIVACY
bool "Enable host based privacy for random address."
default n
depends on BT_NIMBLE_ENABLED && !IDF_TARGET_ESP32
depends on BT_NIMBLE_ENABLED && IDF_TARGET_ESP32
help
Use this option to do host based Random Private Address resolution.
If this option is disabled then controller based privacy is used.
Expand Down
1 change: 1 addition & 0 deletions components/bt/host/nimble/esp-hci/src/esp_nimble_hci.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ static int host_rcv_pkt(uint8_t *data, uint16_t len)
assert(evbuf != NULL);
}

memset(evbuf, 0, sizeof *evbuf);
memcpy(evbuf, &data[1], totlen);

rc = ble_hci_trans_ll_evt_tx(evbuf);
Expand Down

0 comments on commit 1937282

Please sign in to comment.