projects
/
platform
/
core
/
api
/
notification.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31dce67
)
Fix memory leak
39/167039/1
author
Seungha Son
<seungha.son@samsung.com>
Mon, 15 Jan 2018 06:10:13 +0000
(15:10 +0900)
committer
Seungha Son
<seungha.son@samsung.com>
Mon, 15 Jan 2018 06:10:27 +0000
(15:10 +0900)
Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I0070ce7f7f32149eece67da17f0ec1fbf4c0c111
src/notification_noti.c
patch
|
blob
|
history
diff --git
a/src/notification_noti.c
b/src/notification_noti.c
index 4fc8deecf5659b13fe5a6a92ae330462cdb6baef..ea675ddca04f610b4159d695a36232f20724e829 100755
(executable)
--- a/
src/notification_noti.c
+++ b/
src/notification_noti.c
@@
-610,6
+610,9
@@
static int _get_notification(char *query_where, notification_h noti)
}
err:
+ if (query)
+ sqlite3_free(query);
+
if (stmt)
sqlite3_finalize(stmt);
@@
-693,6
+696,9
@@
err:
if (db != NULL)
notification_db_close(&db);
+ if (query)
+ sqlite3_free(query);
+
return ret;
}
int notification_noti_set_tag(const char *tag, char *value, char *buf, int buf_len)