system-linux: fix memory leak in system_bridge_vlan_check
authorFelix Fietkau <nbd@nbd.name>
Sun, 4 Jun 2023 16:34:01 +0000 (18:34 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sun, 4 Jun 2023 16:35:00 +0000 (18:35 +0200)
commitec9dba72124597b7224bbfe75960386dc320f4bd
treed36ff78d3e1f00f1b605fb1e9be2bbc683dff190
parent38cbdc1c8cbbe2e30d62227d74565bd3fa21a36b
system-linux: fix memory leak in system_bridge_vlan_check

The message passed to nl_send_auto_complete still needs to be freed
even in the normal path

Fixes: https://github.com/openwrt/netifd/issues/4
Fixes: 85f01c44a950 ("bridge: check bridge port vlan membership on link-up events")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
system-linux.c