projects
/
platform
/
core
/
appfw
/
librua.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix resource leak
[platform/core/appfw/librua.git]
/
src
/
rua.c
diff --git
a/src/rua.c
b/src/rua.c
index
1fbab49
..
91fd385
100644
(file)
--- 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;
}