diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2016-11-27 19:51:57 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2016-11-28 01:56:05 +0100 |
commit | b3f96d39f67f843211c1bcc2527727cd6ee48c7d (patch) | |
tree | 182929ab5f08223fa762d1630d33f3c9cff9c3a3 /src/libtracker-sparql/tracker-notifier.c | |
parent | c698a0e4c5109165b8fe926b27cdccacea9414e1 (diff) | |
download | tracker-b3f96d39f67f843211c1bcc2527727cd6ee48c7d.tar.gz |
libtracker-sparql: Plug TrackerNotifier leak
The GString used to build the query is being leaked.
Diffstat (limited to 'src/libtracker-sparql/tracker-notifier.c')
-rw-r--r-- | src/libtracker-sparql/tracker-notifier.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libtracker-sparql/tracker-notifier.c b/src/libtracker-sparql/tracker-notifier.c index 38e5fcedc..e448e7981 100644 --- a/src/libtracker-sparql/tracker-notifier.c +++ b/src/libtracker-sparql/tracker-notifier.c @@ -660,6 +660,8 @@ expand_class_iris (TrackerNotifier *notifier, cursor = tracker_sparql_connection_query (priv->connection, sparql->str, cancellable, error); + g_string_free (sparql, TRUE); + if (!cursor) return FALSE; if (!tracker_sparql_cursor_next (cursor, cancellable, error)) |