monitor: Fix memory leaks
authorGopal Tiwari <gtiwari@redhat.com>
Tue, 31 May 2022 07:41:07 +0000 (13:11 +0530)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commit3a0fa70ec5506564bab0d03098b6df5d4b7aa724
tree02f5db6e9b827ab59bcf1621f9c828e285406c43
parent7d967e694706978935ef0b27eac375f463d05493
monitor: Fix memory leaks

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

bluez-5.64/monitor/jlink.c:111: leaked_storage: Variable "so"
going out of scope leaks the storage it points to.

bluez-5.64/monitor/jlink.c:113: leaked_storage: Variable "so"
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>
monitor/jlink.c