diff options
author | Werner Koch <[email protected]> | 2005-07-27 18:10:56 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2005-07-27 18:10:56 +0000 |
commit | a1cdf3c75fd5c644607b1877207d1d5b507a5bb9 (patch) | |
tree | db7ed08934f367159a6792990476c0991fa44246 /mpi/mpicoder.c | |
parent | Removed directories which are only used by the 1.9 branch (diff) | |
download | gnupg-a1cdf3c75fd5c644607b1877207d1d5b507a5bb9.tar.gz gnupg-a1cdf3c75fd5c644607b1877207d1d5b507a5bb9.zip |
Converted all m_free to xfree etc.
Diffstat (limited to 'mpi/mpicoder.c')
-rw-r--r-- | mpi/mpicoder.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mpi/mpicoder.c b/mpi/mpicoder.c index c0ae5f4be..46cfb5b1d 100644 --- a/mpi/mpicoder.c +++ b/mpi/mpicoder.c @@ -56,7 +56,7 @@ mpi_write( IOBUF out, MPI a ) p = buf = mpi_get_buffer( a, &n, NULL ); rc = iobuf_write( out, p, n ); - m_free(buf); + xfree(buf); return rc; } @@ -344,7 +344,7 @@ mpi_get_keyid( MPI a, u32 *keyid ) /**************** - * Return an m_alloced buffer with the MPI (msb first). + * Return an xmalloced buffer with the MPI (msb first). * NBYTES receives the length of this buffer. Caller must free the * return string (This function does return a 0 byte buffer with NBYTES * set to zero if the value of A is zero. If sign is not NULL, it will @@ -363,8 +363,8 @@ do_get_buffer( MPI a, unsigned *nbytes, int *sign, int force_secure ) *nbytes = n = a->nlimbs * BYTES_PER_MPI_LIMB; if (!n) n++; /* avoid zero length allocation */ - p = buffer = force_secure || mpi_is_secure(a) ? m_alloc_secure(n) - : m_alloc(n); + p = buffer = force_secure || mpi_is_secure(a) ? xmalloc_secure(n) + : xmalloc(n); for(i=a->nlimbs-1; i >= 0; i-- ) { alimb = a->d[i]; |