audiod: Fix memory leak on exit: gengetopt.
authorAndre Noll <maan@systemlinux.org>
Sat, 6 Jul 2013 21:04:14 +0000 (23:04 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 22 Sep 2013 00:29:18 +0000 (02:29 +0200)
Free gengetopt config structure on exit.

audiod.c

index d2a58bb..2367d9c 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -1142,6 +1142,7 @@ void __noreturn clean_exit(int status, const char *msg)
        close_stat_pipe();
        FOR_EACH_SLOT(i)
                close_slot(i);
+       audiod_cmdline_parser_free(&conf);
        exit(status);
 }