From 1140ca6d3004b228947bad8736f0b49d6b169267 Mon Sep 17 00:00:00 2001 From: thorkill Date: Sat, 4 Jul 2015 00:29:36 +0200 Subject: [PATCH] Fixed 2 leaks in setup_myself() --- src/net_setup.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.20.1