Commit 988a94a5 authored by Carlos Garnacho's avatar Carlos Garnacho
Browse files

tracker-miner-fs: Plug leak

The domain_ontology variable is not being freed in some error
paths.

CID: #365673
parent 23118d41
......@@ -629,6 +629,8 @@ check_eligible (void)
domain_ontology = tracker_domain_ontology_new (domain_ontology_name, NULL, &error);
ontology = tracker_domain_ontology_get_ontology (domain_ontology);
tracker_domain_ontology_unref (domain_ontology);
sparql_conn = tracker_sparql_connection_new (0,
NULL,
ontology,
......@@ -739,7 +741,6 @@ check_eligible (void)
g_object_unref (file);
g_object_unref (miner_files);
g_object_unref (info);
tracker_domain_ontology_unref (domain_ontology);
return (indexable && parents_indexable) ? EXIT_SUCCESS : EXIT_FAILURE;
}
......
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