X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet_setup.c;h=0033c008cbf28a25c9cb968e4ef25a4356da237a;hb=1140ca6d3004b228947bad8736f0b49d6b169267;hp=bf5ba04c1e7e1005b22f48ffd164b32584a34510;hpb=0267aef826ba627aba3a525b36c0e7bfc0f9a221;p=tinc diff --git a/src/net_setup.c b/src/net_setup.c index bf5ba04c..0033c008 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -364,6 +364,7 @@ void load_all_subnets(void) { if((s2 = lookup_subnet(n, s))) { s2->expires = -1; + free(s); } else { subnet_add(n, s); } @@ -962,6 +963,8 @@ static bool setup_myself(void) { devops = vde_devops; #endif } + if (type) + free(type); get_config_bool(lookup_config(config_tree, "DeviceStandby"), &device_standby);