Parent: 559e40a8b9a413119cebe2f5dfa2ece04daff6ff
Author: Roman Smirnov <r.smirnov@omp.ru>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-06-28 18:02:02
Tree: cd7a8989d69aff13da630bc47ee43cb69c72c4c6
gatt-server: fix memory leak in bt_gatt_server_send_notification() data-pdu is allocated but not released when an error occurs. Add data-pdu release before exiting the function in case of an error. Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool.
Diffstat
| M | src/shared/gatt-server.c | | | 4 | +++- |
1 files changed, 3 insertions(+), 1 deletions(-)