From 0cbd0ac87ebe208b0d47df28e86c16886bdb687d Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 13 Jan 2012 23:38:14 +0100 Subject: [PATCH] Fix memory leak in audioc.c. We leak cf which is allocated and returned by configfile_exists(). --- audioc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/audioc.c b/audioc.c index 7435a869..1baa6c34 100644 --- a/audioc.c +++ b/audioc.c @@ -298,7 +298,9 @@ int main(int argc, char *argv[]) .check_required = 0, .check_ambiguity = 0 }; - if (audioc_cmdline_parser_config_file(cf, &conf, ¶ms)) { + ret = audioc_cmdline_parser_config_file(cf, &conf, ¶ms); + free(cf); + if (ret) { fprintf(stderr, "parse error in config file\n"); exit(EXIT_FAILURE); } -- 2.39.5