diff options
author | mk5004.lee <mk5004.lee@samsung.com> | 2019-01-28 15:10:35 +0900 |
---|---|---|
committer | mk5004.lee <mk5004.lee@samsung.com> | 2019-01-28 16:30:01 +0900 |
commit | 88349b5229128b30b2d0fbade9e533fac215f197 (patch) | |
tree | 680dd90a6a3c2575b80311099f725a024c3ed7f5 /src | |
parent | 1574bb3195a9e68eb9e4be0970ebd89cf3cb1985 (diff) | |
download | librua-88349b5229128b30b2d0fbade9e533fac215f197.tar.gz librua-88349b5229128b30b2d0fbade9e533fac215f197.tar.bz2 librua-88349b5229128b30b2d0fbade9e533fac215f197.zip |
Fix resource leak
Change-Id: I37e71d23bd0e9fce9ee42d3c8f76c9862ec49a9f
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
Diffstat (limited to 'src')
-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; } |