[tracker/wip/carlosg/coverity-warnings: 23/27] libtracker-data: Plug leak
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/coverity-warnings: 23/27] libtracker-data: Plug leak
- Date: Fri, 26 Mar 2021 11:22:24 +0000 (UTC)
commit 143f1bb1d26d8bf75463a162d22a1034bb42ba8d
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Mar 20 13:24:53 2021 +0100
libtracker-data: Plug leak
CID: #1501145
src/libtracker-data/tracker-db-interface-sqlite.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/libtracker-data/tracker-db-interface-sqlite.c
b/src/libtracker-data/tracker-db-interface-sqlite.c
index 921fa07b1..367585192 100644
--- a/src/libtracker-data/tracker-db-interface-sqlite.c
+++ b/src/libtracker-data/tracker-db-interface-sqlite.c
@@ -3819,8 +3819,9 @@ tracker_db_interface_detach_database (TrackerDBInterface *db_interface,
gchar *sql;
sql = g_strdup_printf ("DETACH DATABASE \"%s\"", name);
-
stmt = tracker_db_interface_prepare_stmt (db_interface, sql, error);
+ g_free (sql);
+
if (!stmt)
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]