projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0267aef
)
Fixed 2 leaks in setup_myself()
author
thorkill
<thkr@hannover.ccc.de>
Fri, 3 Jul 2015 22:29:36 +0000
(
00:29
+0200)
committer
thorkill
<thkr@hannover.ccc.de>
Sat, 4 Jul 2015 01:23:58 +0000
(
03:23
+0200)
src/net_setup.c
patch
|
blob
|
history
diff --git
a/src/net_setup.c
b/src/net_setup.c
index
bf5ba04
..
0033c00
100644
(file)
--- 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);