Fixed a issue for using heap after free 74/142974/1 accepted/tizen/4.0/unified/20170828.223511 accepted/tizen/unified/20170811.021041 submit/tizen/20170809.085632 submit/tizen_4.0/20170828.100003
authorhyunuktak <hyunuk.tak@samsung.com>
Tue, 8 Aug 2017 05:37:56 +0000 (14:37 +0900)
committerhyunuktak <hyunuk.tak@samsung.com>
Tue, 8 Aug 2017 05:37:58 +0000 (14:37 +0900)
Change-Id: I6d79e47857211945aa29de2de71072dc98835bd4
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
src/database/db-common.c

index d2ad1ea..3895e12 100755 (executable)
@@ -75,6 +75,7 @@ stc_error_e stc_db_initialize_once(void)
                STC_LOGE("Can't set locking mode %s, skip set busy handler.",
                         sqlite3_errmsg(database));
                sqlite3_close(database);
+               database = NULL;
                __STC_LOG_FUNC_EXIT__;
                return STC_ERROR_DB_FAILED;
        }