Call ENGINE_cleanup() to avoid memory leak.
This commit is contained in:
parent
93dbd83570
commit
b8e2f83ae6
@ -65,6 +65,7 @@ int main(int argc, char * argv[]) { puts("Elliptic curves are disabled."); retur
|
||||
|
||||
|
||||
#include <openssl/ec.h>
|
||||
#include <openssl/engine.h>
|
||||
#include <openssl/err.h>
|
||||
|
||||
#define ABORT do { \
|
||||
@ -617,6 +618,7 @@ int main(int argc, char *argv[])
|
||||
if (P_384) EC_GROUP_free(P_384);
|
||||
if (P_521) EC_GROUP_free(P_521);
|
||||
|
||||
ENGINE_cleanup();
|
||||
ERR_free_strings();
|
||||
ERR_remove_state(0);
|
||||
CRYPTO_mem_leaks_fp(stderr);
|
||||
|
@ -124,6 +124,7 @@
|
||||
#include <openssl/evp.h>
|
||||
#include <openssl/x509.h>
|
||||
#include <openssl/ssl.h>
|
||||
#include <openssl/engine.h>
|
||||
#include <openssl/err.h>
|
||||
#include <openssl/rand.h>
|
||||
#ifdef OPENSSL_SYS_WINDOWS
|
||||
@ -704,6 +705,7 @@ end:
|
||||
#ifndef OPENSSL_NO_RSA
|
||||
free_tmp_rsa();
|
||||
#endif
|
||||
ENGINE_cleanup();
|
||||
ERR_free_strings();
|
||||
ERR_remove_state(0);
|
||||
EVP_cleanup();
|
||||
|
Loading…
Reference in New Issue
Block a user