pbap: Fix memory leak
authorGopal Tiwari <gtiwari@redhat.com>
Tue, 31 May 2022 07:41:15 +0000 (13:11 +0530)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commitc3a5b992995b32f20730a0c17c36b876d7d23b41
tree68f3a6abda52e0dd593d19774e925337782a0568
parenta1b2bb620006535fa21ea39f0a8ff951b49eb5ef
pbap: Fix memory leak

Reported by coverity tool as follows:

bluez-5.64/obexd/client/pbap.c:929: leaked_storage: Variable "apparam"
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>
obexd/client/pbap.c