diff options
author | Felix Fietkau <nbd@nbd.name> | 2020-08-07 12:07:53 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2020-08-07 12:08:42 +0200 |
commit | e32e21e8f338045f410293fab928c9166bf8a44e (patch) | |
tree | 6a5b0d0fe92940279340046031809a52c2ae37fa | |
parent | ac0710b7a3c6fc3b7b90d5ddc9a57b437e8e3ac5 (diff) |
bridge: flush vlan list on bridge free
Fixes a potential memory leak
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r-- | bridge.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |