diff --git a/src/net_setup.c b/src/net_setup.c index 0fd3a878..054f66ee 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -393,6 +393,7 @@ void load_all_subnets(void) { if((s2 = lookup_subnet(n, s))) { s2->expires = -1; + free(s); } else { subnet_add(n, s); } @@ -1000,6 +1001,8 @@ static bool setup_myself(void) { devops = vde_devops; #endif } + if (type) + free(type); get_config_bool(lookup_config(config_tree, "DeviceStandby"), &device_standby);