diff options
Diffstat (limited to 'test/exptest.c')
-rw-r--r-- | test/exptest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/exptest.c b/test/exptest.c index 0acdacced7..5cd79e2970 100644 --- a/test/exptest.c +++ b/test/exptest.c @@ -300,7 +300,8 @@ int main(int argc, char *argv[]) BN_CTX_free(ctx); ERR_remove_thread_state(NULL); #ifndef OPENSSL_NO_CRYPTO_MDEBUG - CRYPTO_mem_leaks(out); + if (CRYPTO_mem_leaks(out) <= 0) + goto err; #endif BIO_free(out); printf("\n"); |