projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply patch from Max Rijevski fixing a memory leak when closing connections.
[tinc]
/
src
/
tincd.c
diff --git
a/src/tincd.c
b/src/tincd.c
index
b22a810
..
e65fec4
100644
(file)
--- a/
src/tincd.c
+++ b/
src/tincd.c
@@
-510,7
+510,19
@@
end:
remove_pid(pidfilename);
#endif
remove_pid(pidfilename);
#endif
+ if (identname) free(identname);
+ if (netname) free(netname);
+ if (pidfilename) free(pidfilename);
+ if (logfilename) free(logfilename);
+ if (myport) free(myport);
+ if (device) free(device);
+ if (confbase) free(confbase);
+
EVP_cleanup();
EVP_cleanup();
+ ENGINE_cleanup();
+ CRYPTO_cleanup_all_ex_data();
+ ERR_remove_state(0);
+ ERR_free_strings();
return status;
}
return status;
}