[tracker: 18/21] libtracker-data: Fix memory leaks
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker: 18/21] libtracker-data: Fix memory leaks
- Date: Sun, 17 Feb 2019 20:44:25 +0000 (UTC)
commit c6ba6c243d4626cb126a803a7a73be6bfb270a8c
Author: Andrea Azzarone <andrea azzarone canonical com>
Date: Thu Jan 24 11:08:56 2019 +0000
libtracker-data: Fix memory leaks
src/libtracker-data/tracker-sparql.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/libtracker-data/tracker-sparql.c b/src/libtracker-data/tracker-sparql.c
index d123c6330..346da7ce7 100644
--- a/src/libtracker-data/tracker-sparql.c
+++ b/src/libtracker-data/tracker-sparql.c
@@ -270,8 +270,10 @@ tracker_sparql_expand_prefix (TrackerSparql *sparql,
g_hash_table_insert (sparql->prefix_map, g_strdup (ns), expanded_ns);
}
- if (!expanded_ns)
+ if (!expanded_ns) {
+ g_free (ns);
return NULL;
+ }
}
g_free (ns);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]