[tracker: 17/21] libtracker-data: Fix memory leaks
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker: 17/21] libtracker-data: Fix memory leaks
- Date: Sun, 17 Feb 2019 20:44:20 +0000 (UTC)
commit 352acd80177495d39a01ad694e8c7f3d29e1a5b2
Author: Andrea Azzarone <andrea azzarone canonical com>
Date: Thu Jan 24 11:08:40 2019 +0000
libtracker-data: Fix memory leaks
src/libtracker-data/tracker-db-interface-sqlite.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/libtracker-data/tracker-db-interface-sqlite.c
b/src/libtracker-data/tracker-db-interface-sqlite.c
index d0e8f7adf..a2cb549a4 100644
--- a/src/libtracker-data/tracker-db-interface-sqlite.c
+++ b/src/libtracker-data/tracker-db-interface-sqlite.c
@@ -1702,6 +1702,7 @@ tracker_db_interface_sqlite_fts_init (TrackerDBInterface *db_interface,
fts_columns[i]);
}
+ g_free (db_interface->fts_properties);
db_interface->fts_properties = g_string_free (fts_properties,
FALSE);
g_strfreev (fts_columns);
@@ -2266,6 +2267,7 @@ tracker_db_interface_create_statement (TrackerDBInterface *db_interfac
error);
if (!sqlite_stmt) {
tracker_db_interface_unlock (db_interface);
+ g_free (full_query);
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]