From baac3b4b5f3985305ed6b0f1ce0bd4cfe2c3f470 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Fri, 25 Jun 1999 13:49:55 +0000 Subject: [PATCH] Close another memory hole. --- crypto/rsa/rsa_oaep_test.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crypto/rsa/rsa_oaep_test.c b/crypto/rsa/rsa_oaep_test.c index 08eb264dd9..5931c65c2c 100644 --- a/crypto/rsa/rsa_oaep_test.c +++ b/crypto/rsa/rsa_oaep_test.c @@ -5,6 +5,7 @@ #include "openssl/e_os.h" +#include #include #ifdef NO_RSA int main(int argc, char *argv[]) @@ -215,6 +216,8 @@ int main() int clen = 0; int num; + CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ENABLE); + plen = sizeof(ptext_ex) - 1; for (v = 0; v < 3; v++) @@ -296,6 +299,11 @@ int main() next: RSA_free(key); } + + ERR_remove_state(0); + + CRYPTO_mem_leaks_fp(stdout); + return err; } #endif -- 2.25.1