Fix possible db handle leak 10/209910/3
authorJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 12 Jul 2019 08:07:28 +0000 (17:07 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Tue, 16 Jul 2019 10:38:35 +0000 (10:38 +0000)
commit21ccb661cca44172e14e72bac8f622a41ab6ee3d
tree4c7cb6ad1f619e1b99feaa728933ea01df1b879b
parent9e71d5d62fc49a16eb4f16b8de3a3a1de595be0e
Fix possible db handle leak

sqlite3_open_v2 could return valid connection even if an error occurs,
according to the document so try to close the connection
even if return value indicates that it has failed.

Change-Id: Ia6fa2975230ea6950e0523ab461061b9941a533f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
plugin/app2sd/lib/app2sd_client_interface.c