summaryrefslogtreecommitdiff
path: root/src/rua.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rua.c')
-rw-r--r--src/rua.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rua.c b/src/rua.c
index 1fbab49..91fd385 100644
--- a/src/rua.c
+++ b/src/rua.c
@@ -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;
}