From 46fb21c88036283cecd3caffed8ad98ac3921dcf Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Fri, 29 Jun 2012 17:02:22 -0400 Subject: [PATCH] dbnd must free dropped events --- src/std/filters/dbnd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/std/filters/dbnd.c b/src/std/filters/dbnd.c index 33e79198d..5056185ee 100644 --- a/src/std/filters/dbnd.c +++ b/src/std/filters/dbnd.c @@ -93,8 +93,10 @@ static db_field_log* filter(void* pvt, dbChannel *chan, db_field_log *pfl) { } } } - if (drop) return NULL; - else return pfl; + if (drop) { + db_delete_field_log(pfl); + return NULL; + } else return pfl; } static void channelRegisterPre(dbChannel *chan, void *pvt,