Add CRYPTO_MDEBUG_ABORT to abort() is there are any memory leaks. This will
cause "make test" failures and make resource leaks more obvious.
This commit is contained in:
parent
d7ecd42255
commit
8e6925b0cd
@ -102,7 +102,7 @@ my $usage="Usage: Configure [no-<cipher> ...] [enable-<cipher> ...] [experimenta
|
|||||||
# Minimum warning options... any contributions to OpenSSL should at least get
|
# Minimum warning options... any contributions to OpenSSL should at least get
|
||||||
# past these.
|
# past these.
|
||||||
|
|
||||||
my $gcc_devteam_warn = "-Wall -pedantic -DPEDANTIC -Wno-long-long -Wsign-compare -Wmissing-prototypes -Wshadow -Wformat -Werror -DCRYPTO_MDEBUG_ALL -DREF_CHECK -DOPENSSL_NO_DEPRECATED";
|
my $gcc_devteam_warn = "-Wall -pedantic -DPEDANTIC -Wno-long-long -Wsign-compare -Wmissing-prototypes -Wshadow -Wformat -Werror -DCRYPTO_MDEBUG_ALL -DCRYPTO_MDEBUG_ABORT -DREF_CHECK -DOPENSSL_NO_DEPRECATED";
|
||||||
|
|
||||||
my $x86_gcc_des="DES_PTR DES_RISC1 DES_UNROLL";
|
my $x86_gcc_des="DES_PTR DES_RISC1 DES_UNROLL";
|
||||||
|
|
||||||
|
@ -772,6 +772,9 @@ void CRYPTO_mem_leaks(BIO *b)
|
|||||||
{
|
{
|
||||||
BIO_printf(b,"%ld bytes leaked in %d chunks\n",
|
BIO_printf(b,"%ld bytes leaked in %d chunks\n",
|
||||||
ml.bytes,ml.chunks);
|
ml.bytes,ml.chunks);
|
||||||
|
#ifdef CRYPTO_MDEBUG_ABORT
|
||||||
|
abort();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user