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 /g10/misc.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 '')
-rw-r--r-- | g10/misc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/g10/misc.c b/g10/misc.c index 9f412f3de..380172f09 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -289,7 +289,7 @@ checksum_mpi( MPI a ) nbits = mpi_get_nbits(a); csum = checksum_u16( nbits ); csum += checksum( buffer, nbytes ); - m_free( buffer ); + xfree( buffer ); return csum; } @@ -468,7 +468,7 @@ static unsigned long get_signature_count(PKT_secret_key *sk) return 0; } -/* Expand %-strings. Returns a string which must be m_freed. Returns +/* Expand %-strings. Returns a string which must be xfreed. Returns NULL if the string cannot be expanded (too large). */ char * pct_expando(const char *string,struct expando_args *args) @@ -500,7 +500,7 @@ pct_expando(const char *string,struct expando_args *args) goto fail; maxlen+=1024; - ret=m_realloc(ret,maxlen); + ret=xrealloc(ret,maxlen); } done=0; @@ -571,7 +571,7 @@ pct_expando(const char *string,struct expando_args *args) else if(args->sk->main_keyid[0] || args->sk->main_keyid[1]) { PKT_public_key *pk= - m_alloc_clear(sizeof(PKT_public_key)); + xmalloc_clear(sizeof(PKT_public_key)); if(get_pubkey_fast(pk,args->sk->main_keyid)==0) fingerprint_from_pk(pk,array,&len); @@ -662,7 +662,7 @@ pct_expando(const char *string,struct expando_args *args) return ret; fail: - m_free(ret); + xfree(ret); return NULL; } |