- consider the field in the reload codepath
- free the attribute on interface free
Signed-off-by: Felix Fietkau <nbd@nbd.name>
free(iface->config);
netifd_ubus_remove_interface(iface);
avl_delete(&interfaces.avl, &iface->node.avl);
+ free(iface->zone);
if (iface->jail)
free(iface->jail);
if (iface->jail_device)
if_old->autostart = if_new->config_autostart;
}
+ if (FIELD_CHANGED_STR(zone)) {
+ free(if_old->zone);
+ if_old->zone = if_new->zone;
+ reload = true;
+ }
+
if_old->device_config = if_new->device_config;
if_old->config_autostart = if_new->config_autostart;
if (if_old->jail)
const char *name;
const char *device;
- const char *zone;
+ char *zone;
char *jail;
char *jail_device;
char *host_device;