diff options
author | Martin Willi <martin@revosec.ch> | 2010-05-19 15:22:12 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2010-05-20 17:37:18 +0200 |
commit | 091d178060faaa25b16e89e4e9ec9ee7c374210c (patch) | |
tree | 4ffabf7631ec6ce0f1abdf2a50a838dd3947ce39 /src/libstrongswan/library.c | |
parent | 36c1650b19577a23cee2b75c4db85dcae65608fe (diff) | |
download | strongswan-091d178060faaa25b16e89e4e9ec9ee7c374210c.tar.bz2 strongswan-091d178060faaa25b16e89e4e9ec9ee7c374210c.tar.xz |
Option to skip slow addr2line resolution in leak-detective
Diffstat (limited to 'src/libstrongswan/library.c')
-rw-r--r-- | src/libstrongswan/library.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstrongswan/library.c b/src/libstrongswan/library.c index 108ac2ca0..8166d2457 100644 --- a/src/libstrongswan/library.c +++ b/src/libstrongswan/library.c @@ -59,6 +59,10 @@ library_t *lib; void library_deinit() { private_library_t *this = (private_library_t*)lib; + bool detailed; + + detailed = lib->settings->get_bool(lib->settings, + "libstrongswan.leak_detective.detailed", TRUE); this->public.plugins->destroy(this->public.plugins); this->public.settings->destroy(this->public.settings); @@ -76,6 +80,7 @@ void library_deinit() #ifdef LEAK_DETECTIVE if (this->detective) { + this->detective->report(this->detective, detailed); this->detective->destroy(this->detective); } #endif /* LEAK_DETECTIVE */ |