diff options
Diffstat (limited to 'src/regress/lib/libcrypto/engine/enginetest.c')
| -rw-r--r-- | src/regress/lib/libcrypto/engine/enginetest.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/regress/lib/libcrypto/engine/enginetest.c b/src/regress/lib/libcrypto/engine/enginetest.c index f4d70e7e0a..5032dc47e7 100644 --- a/src/regress/lib/libcrypto/engine/enginetest.c +++ b/src/regress/lib/libcrypto/engine/enginetest.c | |||
| @@ -105,18 +105,6 @@ int main(int argc, char *argv[]) | |||
| 105 | ENGINE *new_h3 = NULL; | 105 | ENGINE *new_h3 = NULL; |
| 106 | ENGINE *new_h4 = NULL; | 106 | ENGINE *new_h4 = NULL; |
| 107 | 107 | ||
| 108 | /* enable memory leak checking unless explicitly disabled */ | ||
| 109 | if (!((getenv("OPENSSL_DEBUG_MEMORY") != NULL) && (0 == strcmp(getenv("OPENSSL_DEBUG_MEMORY"), "off")))) | ||
| 110 | { | ||
| 111 | CRYPTO_malloc_debug_init(); | ||
| 112 | CRYPTO_set_mem_debug_options(V_CRYPTO_MDEBUG_ALL); | ||
| 113 | } | ||
| 114 | else | ||
| 115 | { | ||
| 116 | /* OPENSSL_DEBUG_MEMORY=off */ | ||
| 117 | CRYPTO_set_mem_debug_functions(0, 0, 0, 0, 0); | ||
| 118 | } | ||
| 119 | CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); | ||
| 120 | ERR_load_crypto_strings(); | 108 | ERR_load_crypto_strings(); |
| 121 | 109 | ||
| 122 | memset(block, 0, 512 * sizeof(ENGINE *)); | 110 | memset(block, 0, 512 * sizeof(ENGINE *)); |
| @@ -258,8 +246,8 @@ cleanup_loop: | |||
| 258 | } | 246 | } |
| 259 | for(loop = 0; loop < 512; loop++) | 247 | for(loop = 0; loop < 512; loop++) |
| 260 | { | 248 | { |
| 261 | OPENSSL_free((void *)ENGINE_get_id(block[loop])); | 249 | free((void *)ENGINE_get_id(block[loop])); |
| 262 | OPENSSL_free((void *)ENGINE_get_name(block[loop])); | 250 | free((void *)ENGINE_get_name(block[loop])); |
| 263 | } | 251 | } |
| 264 | printf("\nTests completed happily\n"); | 252 | printf("\nTests completed happily\n"); |
| 265 | to_return = 0; | 253 | to_return = 0; |
