From a69f67d9b65659cb6a458b8e489895cb45e60b69 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 12 Feb 2007 00:18:14 +0100 Subject: [PATCH] filter_chain.c, recv_common.c: Fix another memory leak There was still one leak left: argv[0] gets strdupped, but never freed. --- NEWS | 1 + filter_chain.c | 1 + recv_common.c | 1 + 3 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index 40dd5345..0c26cd97 100644 --- a/NEWS +++ b/NEWS @@ -18,6 +18,7 @@ Minor improvements, more documentation and a bunch of bug fixes. of audio data not being written under certain circumstances - audiod: compute the difference of server time and local time correctly + - para_server/para_audiod: Fix some memory leaks - documentation improvements - configure.ac: fix checks for para_krell - new man pages diff --git a/filter_chain.c b/filter_chain.c index 285cfca9..ee94e8ff 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[0]); free(argv); return *conf? filter_num : -E_BAD_FILTER_OPTIONS; } diff --git a/recv_common.c b/recv_common.c index c14455d0..aad0af0e 100644 --- a/recv_common.c +++ b/recv_common.c @@ -51,6 +51,7 @@ static void *parse_receiver_args(int receiver_num, char *options) argv[1] = NULL; } conf = r->parse_config(argc, argv); + free(argv[0]); free(argv); return conf; } -- 2.39.5