From: Andre Noll Date: Sun, 11 Nov 2012 09:14:39 +0000 (+0100) Subject: para_filter: Call proper ->free_config method on shutdown. X-Git-Tag: v0.4.12~4^2~6 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=c25d04743aad0482a51fe287597434a3bf6f1108 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. --- 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);