From: Wootak Jung Date: Tue, 4 Jan 2022 04:46:52 +0000 (+0900) Subject: Fix svace issue X-Git-Tag: accepted/tizen/7.0/unified/20221110.063523^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_8.0_unified;p=platform%2Fcore%2Ftelephony%2Ftel-plugin-database.git Fix svace issue Change-Id: I1ee7ee53c2a5bae7e4bd795f8d82e1abbd94c7ab Signed-off-by: Wootak Jung --- diff --git a/src/database_main.c b/src/database_main.c index 5af22a0..0b21d2e 100644 --- a/src/database_main.c +++ b/src/database_main.c @@ -127,6 +127,7 @@ static void *create_handle(Storage *strg, const char *path) rv = sqlite3_busy_handler(handle, _busy_handler, NULL); if (rv != SQLITE_OK) { err("fail to register busy handler err(%d), errmsg(%s)", rv, sqlite3_errmsg(handle)); + sqlite3_close(handle); return NULL; }