projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Move free()s at the end om main() to the proper destructor functions.
[tinc]
/
src
/
net_setup.c
diff --git
a/src/net_setup.c
b/src/net_setup.c
index
f4246db
..
d6d145a
100644
(file)
--- a/
src/net_setup.c
+++ b/
src/net_setup.c
@@
-608,6
+608,8
@@
void close_network_connections(void)
execute_script("tinc-down", envp);
+ if(myport) free(myport);
+
for(i = 0; i < 4; i++)
free(envp[i]);