diff options
Diffstat (limited to 'src/lib/libcrypto/comp/comp_lib.c')
-rw-r--r-- | src/lib/libcrypto/comp/comp_lib.c | 6 |
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 b60ae371e8..feb07ea881 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 *)OPENSSL_malloc(sizeof(COMP_CTX))) == NULL) | 11 | if ((ret=(COMP_CTX *)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 | OPENSSL_free(ret); | 20 | free(ret); |
21 | ret=NULL; | 21 | ret=NULL; |
22 | } | 22 | } |
23 | return(ret); | 23 | return(ret); |
@@ -31,7 +31,7 @@ void COMP_CTX_free(COMP_CTX *ctx) | |||
31 | if (ctx->meth->finish != NULL) | 31 | if (ctx->meth->finish != NULL) |
32 | ctx->meth->finish(ctx); | 32 | ctx->meth->finish(ctx); |
33 | 33 | ||
34 | OPENSSL_free(ctx); | 34 | free(ctx); |
35 | } | 35 | } |
36 | 36 | ||
37 | int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen, | 37 | int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen, |