diff options
Diffstat (limited to 'util_func.c')
-rw-r--r-- | util_func.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/util_func.c b/util_func.c index cd6c87c..ac0dcff 100644 --- a/util_func.c +++ b/util_func.c @@ -145,13 +145,10 @@ int db_util_open_with_options(const char *pszFilePath, sqlite3 **ppDB, int db_util_close(sqlite3 *pDB) { - char *pszErrorMsg = NULL; - /* Close DB */ int rc = sqlite3_close(pDB); if (SQLITE_OK != rc) { - DB_UTIL_TRACE_WARNING("Fail to change journal mode: %s\n", pszErrorMsg); - sqlite3_free(pszErrorMsg); + DB_UTIL_TRACE_WARNING("Fail to close DB\n"); return rc; } |