From 2f6dbc9140641dc9447a14282b89f7beaabd176c Mon Sep 17 00:00:00 2001 From: chris mikkelson Date: Wed, 28 Jan 2009 21:23:14 -0600 Subject: [PATCH] Recursively call msgproc_finish on downstream msgprocs. The finish routine of the module is responsible for freeing the module with msgproc_free. --- msgproc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/msgproc.c b/msgproc.c index 8457a85..d3bffad 100644 --- a/msgproc.c +++ b/msgproc.c @@ -91,6 +91,7 @@ msgproc_process(msgproc *m, char *data, size_t size) void msgproc_finish(msgproc *m) { + msgproc_finish(msgproc_next(m)); if (m && m->mp_mod && m->mp_mod->mp_finish) m->mp_mod->mp_finish(m); } -- 2.50.1