summaryrefslogtreecommitdiff
path: root/crypto/comp/comp_lib.c
diff options
context:
space:
mode:
authorlevitte <levitte>2000-06-01 22:15:51 +0000
committerlevitte <levitte>2000-06-01 22:15:51 +0000
commit1f556362dc4aa3ae4ad87da38941d9d16aa54e6d (patch)
tree58b5e41eccc7fb90b0ada59d67f6d48b06e1428e /crypto/comp/comp_lib.c
parentd9e0a6ac77a46f743679baada0022ce4c830db10 (diff)
downloadopenssl-1f556362dc4aa3ae4ad87da38941d9d16aa54e6d.tar.gz
There have been a number of complaints from a number of sources that names
like Malloc, Realloc and especially Free conflict with already existing names on some operating systems or other packages. That is reason enough to change the names of the OpenSSL memory allocation macros to something that has a better chance of being unique, like prepending them with OPENSSL_. This change includes all the name changes needed throughout all C files.
Diffstat (limited to 'crypto/comp/comp_lib.c')
-rw-r--r--crypto/comp/comp_lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/comp/comp_lib.c b/crypto/comp/comp_lib.c
index a67ef23bc..beb98ce8c 100644
--- a/crypto/comp/comp_lib.c
+++ b/crypto/comp/comp_lib.c
@@ -8,7 +8,7 @@ COMP_CTX *COMP_CTX_new(COMP_METHOD *meth)
{
COMP_CTX *ret;
- if ((ret=(COMP_CTX *)Malloc(sizeof(COMP_CTX))) == NULL)
+ if ((ret=(COMP_CTX *)OPENSSL_malloc(sizeof(COMP_CTX))) == NULL)
{
/* ZZZZZZZZZZZZZZZZ */
return(NULL);
@@ -17,7 +17,7 @@ COMP_CTX *COMP_CTX_new(COMP_METHOD *meth)
ret->meth=meth;
if ((ret->meth->init != NULL) && !ret->meth->init(ret))
{
- Free(ret);
+ OPENSSL_free(ret);
ret=NULL;
}
#if 0
@@ -37,7 +37,7 @@ void COMP_CTX_free(COMP_CTX *ctx)
if (ctx->meth->finish != NULL)
ctx->meth->finish(ctx);
- Free(ctx);
+ OPENSSL_free(ctx);
}
int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen,