projects
/
platform
/
core
/
appfw
/
app2sd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6965dc
)
Fix memory leak
36/198636/1
author
ilho
<ilho159.kim@samsung.com>
Mon, 28 Jan 2019 08:13:08 +0000
(17:13 +0900)
committer
ilho
<ilho159.kim@samsung.com>
Mon, 28 Jan 2019 08:22:54 +0000
(17:22 +0900)
Change-Id: I5694d2766800860fdd4df9378c29f01f2a1c2752
Signed-off-by: ilho <ilho159.kim@samsung.com>
plugin/app2sd/server/app2sd_internals_registry.c
patch
|
blob
|
history
diff --git
a/plugin/app2sd/server/app2sd_internals_registry.c
b/plugin/app2sd/server/app2sd_internals_registry.c
index
d5d7c62
..
9cade23
100644
(file)
--- a/
plugin/app2sd/server/app2sd_internals_registry.c
+++ b/
plugin/app2sd/server/app2sd_internals_registry.c
@@
-176,12
+176,14
@@
static int _app2sd_check_existing_info(const char *pkgid, uid_t uid)
if (sqlite3_step(stmt) != SQLITE_ROW) {
_E("failed to step");
sqlite3_finalize(stmt);
+ sqlite3_free(query);
return -1;
}
val = (const char *)sqlite3_column_text(stmt, 0);
ret = atoi(val);
sqlite3_finalize(stmt);
+ sqlite3_free(query);
return ret;
}