[tracker/wip/carlosg/coverity-fixes: 13/16] docs: Avoid GError double free




commit d030fd7312598d76146a13ecd0d557ca1ae36e5a
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Oct 23 15:01:43 2021 +0200

    docs: Avoid GError double free
    
    This variable is already g_autoptr, freeing up the error here
    would lead to a double free.
    
    CID: #1506767

 docs/tools/tracker-main.c | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/docs/tools/tracker-main.c b/docs/tools/tracker-main.c
index c86e6090b..754193e25 100644
--- a/docs/tools/tracker-main.c
+++ b/docs/tools/tracker-main.c
@@ -103,7 +103,6 @@ main (gint argc, gchar **argv)
        model = tracker_ontology_model_new (ontology_file, &error);
        if (error) {
                g_printerr ("Error loading ontology: %s\n", error->message);
-               g_error_free (error);
                return -1;
        }
 


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