Option to skip slow addr2line resolution in leak-detective

This commit is contained in:
Martin Willi
2010-05-20 17:37:18 +02:00
parent 36c1650b19
commit 091d178060
7 changed files with 80 additions and 53 deletions
+5
View File
@@ -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 */