leak detective blanks memory on free & alloc, allows further membug detection

This commit is contained in:
Martin Willi
2006-07-12 11:15:31 +00:00
parent 4c19900ce8
commit 269f7f448b
3 changed files with 28 additions and 14 deletions
+1 -1
View File
@@ -89,8 +89,8 @@ static void set_key(private_hmac_prf_t *this, chunk_t key)
*/
static void destroy(private_hmac_prf_t *this)
{
free(this);
this->hmac->destroy(this->hmac);
free(this);
}
/*