From c25d04743aad0482a51fe287597434a3bf6f1108 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 11 Nov 2012 10:14:39 +0100 Subject: [PATCH] para_filter: Call proper ->free_config method on shutdown. Currently we just free the conf struct. For some filters this not enough to deallocate all resources and therefore results in a memory leak. This leak is not serious though, since it does not affect para_audiod, and para_filter is about to exit anyway at this point. Fix it anyway. --- filter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/filter.c b/filter.c index 55b48ea2..38122977 100644 --- a/filter.c +++ b/filter.c @@ -162,7 +162,8 @@ out_cleanup: if (f->close) f->close(fn); btr_remove_node(&fn->btrn); - free(fn->conf); + if (f->free_config) + f->free_config(fn->conf); free(fn); } free(fns); -- 2.30.2