summaryrefslogtreecommitdiff
path: root/src/lib/libssl/src/demos/b64.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/src/demos/b64.c')
-rw-r--r--src/lib/libssl/src/demos/b64.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libssl/src/demos/b64.c b/src/lib/libssl/src/demos/b64.c
index ad86bc9b49..8e248e7e72 100644
--- a/src/lib/libssl/src/demos/b64.c
+++ b/src/lib/libssl/src/demos/b64.c
@@ -177,11 +177,11 @@ bad:
177 if (verbose) BIO_printf(bio_err,"bufsize=%d\n",bsize); 177 if (verbose) BIO_printf(bio_err,"bufsize=%d\n",bsize);
178 } 178 }
179 179
180 strbuf=Malloc(SIZE); 180 strbuf=OPENSSL_malloc(SIZE);
181 buff=(unsigned char *)Malloc(EVP_ENCODE_LENGTH(bsize)); 181 buff=(unsigned char *)OPENSSL_malloc(EVP_ENCODE_LENGTH(bsize));
182 if ((buff == NULL) || (strbuf == NULL)) 182 if ((buff == NULL) || (strbuf == NULL))
183 { 183 {
184 BIO_printf(bio_err,"Malloc failure\n"); 184 BIO_printf(bio_err,"OPENSSL_malloc failure\n");
185 goto end; 185 goto end;
186 } 186 }
187 187
@@ -259,8 +259,8 @@ bad:
259 BIO_printf(bio_err,"bytes written:%8ld\n",BIO_number_written(out)); 259 BIO_printf(bio_err,"bytes written:%8ld\n",BIO_number_written(out));
260 } 260 }
261end: 261end:
262 if (strbuf != NULL) Free(strbuf); 262 if (strbuf != NULL) OPENSSL_free(strbuf);
263 if (buff != NULL) Free(buff); 263 if (buff != NULL) OPENSSL_free(buff);
264 if (in != NULL) BIO_free(in); 264 if (in != NULL) BIO_free(in);
265 if (out != NULL) BIO_free(out); 265 if (out != NULL) BIO_free(out);
266 if (benc != NULL) BIO_free(benc); 266 if (benc != NULL) BIO_free(benc);