diff options
Diffstat (limited to 'src/lib/libcrypto/bio/bio_lib.c')
| -rw-r--r-- | src/lib/libcrypto/bio/bio_lib.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/lib/libcrypto/bio/bio_lib.c b/src/lib/libcrypto/bio/bio_lib.c index 90f1b1c1ef..c226d943af 100644 --- a/src/lib/libcrypto/bio/bio_lib.c +++ b/src/lib/libcrypto/bio/bio_lib.c | |||
| @@ -68,13 +68,13 @@ BIO | |||
| 68 | { | 68 | { | 
| 69 | BIO *ret = NULL; | 69 | BIO *ret = NULL; | 
| 70 | 70 | ||
| 71 | ret = (BIO *)OPENSSL_malloc(sizeof(BIO)); | 71 | ret = (BIO *)malloc(sizeof(BIO)); | 
| 72 | if (ret == NULL) { | 72 | if (ret == NULL) { | 
| 73 | BIOerr(BIO_F_BIO_NEW, ERR_R_MALLOC_FAILURE); | 73 | BIOerr(BIO_F_BIO_NEW, ERR_R_MALLOC_FAILURE); | 
| 74 | return (NULL); | 74 | return (NULL); | 
| 75 | } | 75 | } | 
| 76 | if (!BIO_set(ret, method)) { | 76 | if (!BIO_set(ret, method)) { | 
| 77 | OPENSSL_free(ret); | 77 | free(ret); | 
| 78 | ret = NULL; | 78 | ret = NULL; | 
| 79 | } | 79 | } | 
| 80 | return (ret); | 80 | return (ret); | 
| @@ -136,7 +136,7 @@ BIO_free(BIO *a) | |||
| 136 | if ((a->method == NULL) || (a->method->destroy == NULL)) | 136 | if ((a->method == NULL) || (a->method->destroy == NULL)) | 
| 137 | return (1); | 137 | return (1); | 
| 138 | a->method->destroy(a); | 138 | a->method->destroy(a); | 
| 139 | OPENSSL_free(a); | 139 | free(a); | 
| 140 | return (1); | 140 | return (1); | 
| 141 | } | 141 | } | 
| 142 | 142 | ||
