diff options
author | Bodo Möller <bodo@openssl.org> | 1999-06-25 13:49:55 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-06-25 13:49:55 +0000 |
commit | baac3b4b5f3985305ed6b0f1ce0bd4cfe2c3f470 (patch) | |
tree | 6addf735818173398bad2ed718c51d623aefb46b | |
parent | 227cd06ffea642eb155449888a46159481afe0d0 (diff) | |
download | openssl-baac3b4b5f3985305ed6b0f1ce0bd4cfe2c3f470.tar.gz |
Close another memory hole.
-rw-r--r-- | crypto/rsa/rsa_oaep_test.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 <openssl/crypto.h> #include <openssl/err.h> #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 |