From 3dfc2ea9565e54b0146011bc9784120c3fd004f5 Mon Sep 17 00:00:00 2001 From: Calum Murray Date: Thu, 28 Sep 2023 05:04:44 -0400 Subject: [PATCH] Not filter properly calls cleanup on it's nested filter (#7310) Signed-off-by: Calum Murray --- pkg/eventfilter/subscriptionsapi/not_filter.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/eventfilter/subscriptionsapi/not_filter.go b/pkg/eventfilter/subscriptionsapi/not_filter.go index 9f64421b488..57d98ae0391 100644 --- a/pkg/eventfilter/subscriptionsapi/not_filter.go +++ b/pkg/eventfilter/subscriptionsapi/not_filter.go @@ -48,6 +48,8 @@ func (filter *notFilter) Filter(ctx context.Context, event cloudevents.Event) ev return eventfilter.NoFilter } -func (filter *notFilter) Cleanup() {} +func (filter *notFilter) Cleanup() { + filter.filter.Cleanup() +} var _ eventfilter.Filter = ¬Filter{}