diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2017-01-15 23:03:54 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2017-01-17 15:25:42 +0900 |
commit | 951819132d5b0f50b94bb79df8b57819d84bcb5e (patch) | |
tree | 62ea14e7156ad9897b297cfb9b909fb13907e65b /.travis.yml | |
parent | 2230677ecefe6acf9f88ff461540d965cccded83 (diff) | |
download | ruby-openssl-951819132d5b0f50b94bb79df8b57819d84bcb5e.tar.gz |
Add OpenSSL.print_mem_leaks
Add a wrapper method for CRYPTO_mem_leaks_fp(stderr). Calling the method
at the end of programs helps debugging memory leak bugs in Ruby/OpenSSL.
This is defined only when --enable-debug option is given when building
Ruby/OpenSSL, and the OpenSSL version is capable.
The test suite recognizes 'OSSL_MDEBUG' environment variable. Set to '1'
to enable the memory leak checker. This would prevent creating another
memory leak problem at least on the success paths. Note that this may
print some false-positives with OpenSSL <= 1.0.2.
It was once introduced by f0754f0b2f33 ("test: add test/mdebug
extension", 2016-08-06) as a separate native extension, but reverted by
4c1ca7669180 ("Remove test/mdebug", 2016-08-26) because it didn't work
on Windows. Let's re-introduce as part of openssl.so.
Diffstat (limited to '.travis.yml')
0 files changed, 0 insertions, 0 deletions