mesh/mesh-db: Fix resource leaks
authorGopal Tiwari <gtiwari@redhat.com>
Tue, 31 May 2022 07:41:12 +0000 (13:11 +0530)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commite8d82484b59c06eca9150541228537185a88765d
tree647c72ef564a27198f3c1279febbd1a5709f9f9c
parent48234f099dbe7e2317f84f5484e848540b0e3e70
mesh/mesh-db: Fix resource leaks

While performing static tool analysis using coverity found following
reports for resouse leak

bluez-5.64/tools/mesh/mesh-db.c:2388: leaked_handle: Handle variable
"fd" going out of scope leaks the handle.

bluez-5.64/tools/mesh/mesh-db.c:2388: leaked_storage: Variable "str"
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>
tools/mesh/mesh-db.c