From: Eric Curtin Date: Mon, 28 Mar 2022 14:55:06 +0000 (+0100) Subject: command-parser: add more free's X-Git-Tag: 23.51.283~95^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a7cf6e013e9506fd1168f1aab4c8bb7ba4ad933;p=thirdparty%2Fplymouth.git command-parser: add more free's A couple of resources not free'd --- diff --git a/src/libply/ply-command-parser.c b/src/libply/ply-command-parser.c index f1ddcffd..4fec7fe2 100644 --- a/src/libply/ply-command-parser.c +++ b/src/libply/ply-command-parser.c @@ -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);