mesh/appkey: Fix memory leaks
authorGopal Tiwari <gtiwari@redhat.com>
Tue, 31 May 2022 07:41:06 +0000 (13:11 +0530)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commit7d967e694706978935ef0b27eac375f463d05493
tree4de55bc115c3d8ad3e4f2f1b765584dc5e8065f9
parent89cb0ffcc965b4fc260df53339849f80ce44ff66
mesh/appkey: Fix memory leaks

While performing the static analysis using the coverity tool found
following memory leak reports

bluez-5.64/mesh/appkey.c:143: leaked_storage: Variable "key" going
out of scope leaks the storage it points to.

Error: RESOURCE_LEAK (CWE-772):
bluez-5.64/mesh/appkey.c:146: leaked_storage: Variable "key" going
out of scope leaks the storage it points to.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
mesh/appkey.c