[tracker/sam/ci-sanitize] docs: Fix memory leak in ttl2sgml



commit f307a8bf61b62d2f4a05295d72837c1979a11032
Author: Sam Thursfield <sam afuera me uk>
Date:   Sun Jul 8 15:25:07 2018 +0200

    docs: Fix memory leak in ttl2sgml
    
    This had no negative effects in practice, but when building with
    AddressSanitizer enabled it causes ttl2sgml to exit with an error which
    causes the build to abord.

 docs/tools/ttl2sgml.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/docs/tools/ttl2sgml.c b/docs/tools/ttl2sgml.c
index cc0de0c62..c88d28e66 100644
--- a/docs/tools/ttl2sgml.c
+++ b/docs/tools/ttl2sgml.c
@@ -169,6 +169,7 @@ main (gint argc, gchar **argv)
 
        generate_ontology_class_docs (ontology, output_file);
 
+       ttl_loader_free_ontology();
        g_option_context_free (context);
 
        return 0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]