summaryrefslogtreecommitdiff
path: root/telepathy-logger/log-store-sqlite.c
diff options
context:
space:
mode:
authorCosimo Alfarano <cosimo.alfarano@collabora.co.uk>2010-03-11 17:37:08 +0100
committerCosimo Alfarano <cosimo.alfarano@collabora.co.uk>2010-03-12 14:07:50 +0100
commit3ad30c4a0fe22bf2f8d98ba7a572a83c20db1e66 (patch)
tree5c3e45bdd0147da7391b1b7b123a62fbca99e1fd /telepathy-logger/log-store-sqlite.c
parent75a5443b475111d7c5e8d7f79fb67e8e60ecf4b3 (diff)
downloadtelepathy-logger-3ad30c4a0fe22bf2f8d98ba7a572a83c20db1e66.tar.gz
Fixing a possible leak if sqlite3_step returns ERROR during the step iteration
Diffstat (limited to 'telepathy-logger/log-store-sqlite.c')
-rw-r--r--telepathy-logger/log-store-sqlite.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/telepathy-logger/log-store-sqlite.c b/telepathy-logger/log-store-sqlite.c
index 5467744..563c16a 100644
--- a/telepathy-logger/log-store-sqlite.c
+++ b/telepathy-logger/log-store-sqlite.c
@@ -889,6 +889,8 @@ tpl_log_store_sqlite_get_log_ids (TplLogStore *self,
g_set_error (error, TPL_LOG_STORE_SQLITE_ERROR,
TPL_LOG_STORE_SQLITE_ERROR_GET_PENDING_MESSAGES,
"SQL Error: %s", sqlite3_errmsg (priv->db));
+ g_list_foreach (retval, (GFunc) g_free, NULL);
+ g_list_free (retval);
retval = NULL;
}