[tracker/wip/carlosg/coverity-warnings: 15/18] libtracker-data: Plug leak
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/coverity-warnings: 15/18] libtracker-data: Plug leak
- Date: Sun, 21 Mar 2021 20:56:35 +0000 (UTC)
commit 457b481fb30ca9518c0286b60c13282a9dc6f411
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 2b4450eea..c87041cdc 100644
--- a/src/libtracker-data/tracker-db-interface-sqlite.c
+++ b/src/libtracker-data/tracker-db-interface-sqlite.c
@@ -3809,8 +3809,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]