Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
tracker-miners
Commits
988a94a5
Commit
988a94a5
authored
Oct 24, 2021
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/miners/fs/tracker-main.c
View file @
988a94a5
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment