Fix memory leaks found by valgrind.
This commit is contained in:
parent
72642b40b3
commit
d1ec010660
6 changed files with 20 additions and 12 deletions
|
|
@ -680,6 +680,8 @@ static bool setup_myself(void) {
|
|||
return false;
|
||||
}
|
||||
|
||||
free(cipher);
|
||||
|
||||
regenerate_key();
|
||||
|
||||
/* Check if we want to use message authentication codes... */
|
||||
|
|
@ -700,6 +702,8 @@ static bool setup_myself(void) {
|
|||
return false;
|
||||
}
|
||||
|
||||
free(digest);
|
||||
|
||||
/* Compression */
|
||||
|
||||
if(get_config_int(lookup_config(config_tree, "Compression"), &myself->incompression)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue