From 040460734d8fae886b8ed94f050d6e7902b83053 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 11 Feb 2007 23:47:57 +0100 Subject: [PATCH] filter_chain(): Fix memory leak in parse_filter_args Same bug as in parse_receiver_args(): argv must be freed (see previous patch). --- filter_chain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/filter_chain.c b/filter_chain.c index 8a41beda..285cfca9 100644 --- a/filter_chain.c +++ b/filter_chain.c @@ -222,6 +222,7 @@ static int parse_filter_args(int filter_num, char *options, void **conf) argv[0] = para_strdup(f->name); argc += 1; *conf = f->parse_config(argc, argv); + free(argv); return *conf? filter_num : -E_BAD_FILTER_OPTIONS; } -- 2.39.5