diff options
Diffstat (limited to 'crypto/rand')
-rw-r--r-- | crypto/rand/rand_win.c | 4 | ||||
-rw-r--r-- | crypto/rand/randfile.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crypto/rand/rand_win.c b/crypto/rand/rand_win.c index 78a55f32d3..2ee4a48cc8 100644 --- a/crypto/rand/rand_win.c +++ b/crypto/rand/rand_win.c @@ -252,7 +252,7 @@ void RAND_screen(void) GetObject(hBitmap, sizeof(BITMAP), (LPSTR)&bm); size = (unsigned int)bm.bmWidthBytes * bm.bmHeight * bm.bmPlanes; - bmbits = Malloc(size); + bmbits = OPENSSL_malloc(size); if (bmbits) { /* Now go through the whole screen, repeatedly grabbing n lines */ for (y = 0; y < h-n; y += n) @@ -272,7 +272,7 @@ void RAND_screen(void) RAND_seed(md, MD_DIGEST_LENGTH); } - Free(bmbits); + OPENSSL_free(bmbits); } /* Select old bitmap back into memory DC */ diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index d01b9852e9..830d6168e6 100644 --- a/crypto/rand/randfile.c +++ b/crypto/rand/randfile.c @@ -172,7 +172,7 @@ int RAND_write_file(const char *file) { char *tmpf; - tmpf = Malloc(strlen(file) + 4); /* to add ";-1" and a nul */ + tmpf = OPENSSL_malloc(strlen(file) + 4); /* to add ";-1" and a nul */ if (tmpf) { strcpy(tmpf, file); |