diff options
Diffstat (limited to 'src/rua.c')
-rw-r--r-- | src/rua.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -157,7 +157,8 @@ API int rua_history_load_db_for_uid(char ***table, int *nrows, int *ncols, uid_t r = sqlite3_get_table(db, query, &db_result, nrows, ncols, &db_err); if (r != SQLITE_OK) { - LOGE("get table failed: %s", sqlite3_errmsg(db)); + LOGE("get table failed: %s", db_err); + sqlite3_free(db_err); sqlite3_close_v2(db); return -1; } |