Commit c6ba6c24 authored by Andrea Azzarone's avatar Andrea Azzarone 🚴

libtracker-data: Fix memory leaks

parent 352acd80
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment