Parent: 21f65f7b2fca8201291bc5b630d3c20e209d515d
Author: Gopal Tiwari <gtiwari@redhat.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2022-05-31 22:48:33
Tree: f9348cd824a8301eafbdba0b4b404dab62a3b73d
client/gatt: Fix memory leak issues While performing the static tool analysis using coverity tool found following reports Error: RESOURCE_LEAK (CWE-772): bluez-5.64/client/gatt.c:1531: leaked_storage: Variable "service" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): bluez-5.64/client/gatt.c:2626: leaked_storage: Variable "chrc" going out of scope leaks the storage it points to. Error: RESOURCE_LEAK (CWE-772): bluez-5.64/client/gatt.c:2906: leaked_storage: Variable "desc" going out of scope leaks the storage it points to.
Diffstat
| M | client/gatt.c | | | 12 | +++++++++- - - |
1 files changed, 9 insertions(+), 3 deletions(-)