[tracker/wip/carlosg/plug-leaks: 3/5] libtracker-data: Plug leak
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/plug-leaks: 3/5] libtracker-data: Plug leak
- Date: Sat, 26 Dec 2020 20:14:53 +0000 (UTC)
commit 4f9e9b7e0095a9758bc228bc17921e2eaac35067
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Dec 20 21:05:51 2020 +0100
libtracker-data: Plug leak
We were missing to free some things when iterating over TrackerResource
properties for insertion.
src/libtracker-data/tracker-data-update.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 06f3a441a..ef1ea0510 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -3005,11 +3005,8 @@ update_resource_single (TrackerData *data,
subject, "rdf:type",
visited, bnodes,
&inner_error);
-
- if (inner_error) {
- g_propagate_error (error, inner_error);
- return FALSE;
- }
+ if (inner_error)
+ goto out;
}
if (!is_bnode) {
@@ -3057,9 +3054,10 @@ update_resource_single (TrackerData *data,
break;
}
+out:
g_list_free (properties);
+ g_free (graph_uri);
-out:
if (inner_error) {
g_propagate_error (error, inner_error);
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]