Fixed 2 leaks in setup_myself()
This commit is contained in:
parent
0267aef826
commit
1140ca6d30
1 changed files with 3 additions and 0 deletions
|
@ -364,6 +364,7 @@ void load_all_subnets(void) {
|
||||||
|
|
||||||
if((s2 = lookup_subnet(n, s))) {
|
if((s2 = lookup_subnet(n, s))) {
|
||||||
s2->expires = -1;
|
s2->expires = -1;
|
||||||
|
free(s);
|
||||||
} else {
|
} else {
|
||||||
subnet_add(n, s);
|
subnet_add(n, s);
|
||||||
}
|
}
|
||||||
|
@ -962,6 +963,8 @@ static bool setup_myself(void) {
|
||||||
devops = vde_devops;
|
devops = vde_devops;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
if (type)
|
||||||
|
free(type);
|
||||||
|
|
||||||
get_config_bool(lookup_config(config_tree, "DeviceStandby"), &device_standby);
|
get_config_bool(lookup_config(config_tree, "DeviceStandby"), &device_standby);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue