summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/comp/comp_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/comp/comp_lib.c')
-rw-r--r--src/lib/libcrypto/comp/comp_lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/comp/comp_lib.c b/src/lib/libcrypto/comp/comp_lib.c
index a67ef23bc0..beb98ce8cc 100644
--- a/src/lib/libcrypto/comp/comp_lib.c
+++ b/src/lib/libcrypto/comp/comp_lib.c
@@ -8,7 +8,7 @@ COMP_CTX *COMP_CTX_new(COMP_METHOD *meth)
8 { 8 {
9 COMP_CTX *ret; 9 COMP_CTX *ret;
10 10
11 if ((ret=(COMP_CTX *)Malloc(sizeof(COMP_CTX))) == NULL) 11 if ((ret=(COMP_CTX *)OPENSSL_malloc(sizeof(COMP_CTX))) == NULL)
12 { 12 {
13 /* ZZZZZZZZZZZZZZZZ */ 13 /* ZZZZZZZZZZZZZZZZ */
14 return(NULL); 14 return(NULL);
@@ -17,7 +17,7 @@ COMP_CTX *COMP_CTX_new(COMP_METHOD *meth)
17 ret->meth=meth; 17 ret->meth=meth;
18 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) 18 if ((ret->meth->init != NULL) && !ret->meth->init(ret))
19 { 19 {
20 Free(ret); 20 OPENSSL_free(ret);
21 ret=NULL; 21 ret=NULL;
22 } 22 }
23#if 0 23#if 0
@@ -37,7 +37,7 @@ void COMP_CTX_free(COMP_CTX *ctx)
37 if (ctx->meth->finish != NULL) 37 if (ctx->meth->finish != NULL)
38 ctx->meth->finish(ctx); 38 ctx->meth->finish(ctx);
39 39
40 Free(ctx); 40 OPENSSL_free(ctx);
41 } 41 }
42 42
43int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen, 43int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen,