create-image: Fix leaked_handle
authorGopal Tiwari <gtiwari@redhat.com>
Tue, 31 May 2022 07:41:10 +0000 (13:11 +0530)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commit76da8a434a56f7044671fa635b4bbea4907aae6c
treee6ca46cdff46495fefb1cb772b4a843e0a79a35b
parent0ecde03a3ae8a3fda5018a9973e205ac20cb7626
create-image: Fix leaked_handle

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

bluez-5.64/tools/create-image.c:124: leaked_storage: Variable "map"
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/create-image.c