From e32e21e8f338045f410293fab928c9166bf8a44e Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 7 Aug 2020 12:07:53 +0200 Subject: bridge: flush vlan list on bridge free Fixes a potential memory leak Signed-off-by: Felix Fietkau --- bridge.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bridge.c b/bridge.c index c96dcc7..14d4972 100644 --- a/bridge.c +++ b/bridge.c @@ -665,6 +665,7 @@ bridge_free(struct device *dev) bst = container_of(dev, struct bridge_state, dev); vlist_flush_all(&bst->members); + vlist_flush_all(&dev->vlans); free(bst->config_data); free(bst); } -- cgit v1.2.3