diff options
| author | Felix Fietkau | 2023-06-04 16:34:01 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2023-06-04 16:35:00 +0000 |
| commit | ec9dba72124597b7224bbfe75960386dc320f4bd (patch) | |
| tree | d36ff78d3e1f00f1b605fb1e9be2bbc683dff190 | |
| parent | 38cbdc1c8cbbe2e30d62227d74565bd3fa21a36b (diff) | |
| download | netifd-ec9dba72124597b7224bbfe75960386dc320f4bd.tar.gz | |
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>
| -rw-r--r-- | system-linux.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/system-linux.c b/system-linux.c index 432581e..cc15537 100644 --- a/system-linux.c +++ b/system-linux.c @@ -2205,11 +2205,8 @@ int system_bridge_vlan_check(struct device *dev, char *ifname) } } - goto out; - free: nlmsg_free(msg); -out: nl_cb_put(cb); return data.ret; } |