- chunk is freed differently

This commit is contained in:
Jan Hutter
2005-11-25 08:10:59 +00:00
parent 5afad07993
commit a27712a933
+2 -2
View File
@@ -80,7 +80,7 @@ static status_t mpz_to_chunk (private_gmp_helper_t *this,mpz_t *mpz_value, chunk
if (tmp_chunk.ptr == NULL)
{
allocator_free_chunk(tmp_chunk);
allocator_free_chunk(&tmp_chunk);
return OUT_OF_RES;
}
@@ -109,7 +109,7 @@ static status_t mpz_to_chunk (private_gmp_helper_t *this,mpz_t *mpz_value, chunk
*data = tmp_chunk;
if (status != SUCCESS)
{
allocator_free_chunk(tmp_chunk);
allocator_free_chunk(&tmp_chunk);
}
return status;
}