Fix memory leaks found by valgrind.

This commit is contained in:
Guus Sliepen 2012-10-09 16:27:28 +02:00
parent 72642b40b3
commit d1ec010660
6 changed files with 20 additions and 12 deletions

View file

@ -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)) {