Commit 7d0d34b7 authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-sparql: Plug leak

parent b0318ec6
...@@ -1001,14 +1001,17 @@ is_builtin_class (const gchar *uri_or_curie, ...@@ -1001,14 +1001,17 @@ is_builtin_class (const gchar *uri_or_curie,
TrackerNamespaceManager *namespaces) TrackerNamespaceManager *namespaces)
{ {
gchar *prefix = NULL; gchar *prefix = NULL;
gboolean has_prefix;
prefix = g_uri_parse_scheme (uri_or_curie); prefix = g_uri_parse_scheme (uri_or_curie);
if (prefix && if (!prefix)
tracker_namespace_manager_has_prefix (namespaces, prefix))
return TRUE; return TRUE;
return FALSE; has_prefix = tracker_namespace_manager_has_prefix (namespaces, prefix);
g_free (prefix);
return has_prefix;
} }
static void static void
......
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