Fix the possibility of a memory leak 11/209911/4
authorIlho Kim <ilho159.kim@samsung.com>
Fri, 12 Jul 2019 08:20:23 +0000 (17:20 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Tue, 16 Jul 2019 01:00:01 +0000 (10:00 +0900)
commit7284f023e2d8770e1bcce869451cd7e9a282653e
tree6feb43bea67b4ced2ec661d8db5eb033f9457cb5
parent759a63776e87817b66bbb9d3ff0e5d24a59e943c
Fix the possibility of a memory leak

The sqlite3_open_v2() function may have a db handle
,even if even if an error occurs.

Change-Id: Ibe402d33984f833ea79556eece734b7cc349da35
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
parser/src/pkgmgr_parser_db.c
src/pkgmgrinfo_private.c
tool/pkg-db-recovery.c