]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
command-parser: add more free's
authorEric Curtin <ecurtin@redhat.com>
Mon, 28 Mar 2022 14:55:06 +0000 (15:55 +0100)
committerRay Strode <halfline@gmail.com>
Mon, 28 Mar 2022 15:25:50 +0000 (15:25 +0000)
A couple of resources not free'd

src/libply/ply-command-parser.c

index f1ddcffdac1be1c8d17114a067a9c6c5f20f9308..4fec7fe2444d780abf761da2d3bd9daea6e620d8 100644 (file)
@@ -147,6 +147,10 @@ ply_command_free (ply_command_t *command)
                 option_node = ply_list_get_next_node (command->options, option_node);
         }
         ply_list_free (command->options);
+        ply_list_free (command->aliases);
+
+        free (command->name);
+        free (command->description);
         free (command);
 }
 
@@ -369,6 +373,7 @@ ply_command_parser_free (ply_command_parser_t *command_parser)
         }
         ply_list_free (command_parser->available_subcommands);
         ply_list_free (command_parser->read_subcommands);
+        ply_list_free (command_parser->arguments);
 
         ply_command_free (command_parser->main_command);