diff options
author | Jan Hutter <jhutter@hsr.ch> | 2005-11-25 08:10:59 +0000 |
---|---|---|
committer | Jan Hutter <jhutter@hsr.ch> | 2005-11-25 08:10:59 +0000 |
commit | a27712a933b473e38b3eb2d64fa3a47f89c204d1 (patch) | |
tree | abfaff233fbbb82438cde2b572912e067f860041 /Source | |
parent | 5afad0799339a05684f4ea958bd97342391af70c (diff) | |
download | strongswan-a27712a933b473e38b3eb2d64fa3a47f89c204d1.tar.bz2 strongswan-a27712a933b473e38b3eb2d64fa3a47f89c204d1.tar.xz |
- chunk is freed differently
Diffstat (limited to 'Source')
-rw-r--r-- | Source/charon/utils/gmp_helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/charon/utils/gmp_helper.c b/Source/charon/utils/gmp_helper.c index 745d69e0c..f0454a0be 100644 --- a/Source/charon/utils/gmp_helper.c +++ b/Source/charon/utils/gmp_helper.c @@ -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; } |