]> git.ipfire.org Git - pakfire.git/commitdiff
parser: Move cleaning up the parser out of debug block
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 15 Feb 2021 10:54:42 +0000 (10:54 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 15 Feb 2021 10:54:42 +0000 (10:54 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/parser/grammar.y

index 00f3840cfe296d4fc55b860d9992a77af6ad4936..ff24f317df90f96d70a033dc4be32614c13bd68a 100644 (file)
@@ -270,13 +270,13 @@ int pakfire_parser_parse_data(PakfireParser parent, const char* data, size_t len
                parent = pakfire_parser_merge(parent, parser);
        }
 
+       // Destroy the parser
+       pakfire_parser_unref(parser);
+
 #ifdef ENABLE_DEBUG
        // Save end time
        clock_t t_end = clock();
 
-       // Destroy the parser
-       pakfire_parser_unref(parser);
-
        // Log what we have in the parent parser now
        char* dump = pakfire_parser_dump(parent);