commit | 2f024744486b4d23411129de4ac90d6d39900f11 | [log] [tgz] |
---|---|---|
author | Pavel Vasilyev <pavel.vasilyev@nordicsemi.no> | Thu Aug 29 12:11:26 2024 +0200 |
committer | Anas Nashif <anas.nashif@intel.com> | Mon Sep 02 12:30:18 2024 -0400 |
tree | ba91c24fd2058483c38b049c883183c0cb292967 | |
parent | ad0c1e12f634c97ba35f5e428cfde84462dc28ad [diff] |
bluetooth: host: adv: Release buf if failed to set addr The `bt_id_set_adv_own_addr` function itself tries to allocate a buffer for the command and it failes due to lack of buffers, it returns error. However, the `le_ext_adv_param_set` function doesn't handle the error properly and keeps its own allocated buffer. This commit releases the allocated buffer. Partially fixes mesh in #77241. Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>