Commit fa2403de authored by Hans Dedecker's avatar Hans Dedecker

config: fix resource leaks on error in config_parse_interface()

Signed-off-by: default avatarHans Dedecker <>
parent 85de9def
......@@ -120,7 +120,8 @@ config_parse_interface(struct uci_section *s, bool alias)
if (!interface_add_alias(iface, config))
goto error_free_config;
} else {
interface_add(iface, config);
if (!interface_add(iface, config))
goto error_free_config;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment