Move free()s at the end om main() to the proper destructor functions.
This commit is contained in:
parent
67df7fb7e1
commit
a39a9506cd
9 changed files with 47 additions and 18 deletions
|
|
@ -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]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue