diff options
author | Tobias Brunner <tobias@strongswan.org> | 2014-04-01 10:30:13 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2014-04-03 09:44:26 +0200 |
commit | adc11574876dc486fc3aa7d6bbd50405c50a96b8 (patch) | |
tree | 7f2bfe01f37a604fa7288035acc0927dbf132ecd /src/libstrongswan/library.c | |
parent | 7a61bf9032dab58956ee6ad72986b1bc1a642668 (diff) | |
download | strongswan-adc11574876dc486fc3aa7d6bbd50405c50a96b8.tar.bz2 strongswan-adc11574876dc486fc3aa7d6bbd50405c50a96b8.tar.xz |
leak-detective: LEAK_DETECTIVE_DISABLE completely disables LD
If lib->leak_detective is non-null some code parts (e.g. the plugin
loader) assume LD is actually used.
Diffstat (limited to 'src/libstrongswan/library.c')
-rw-r--r-- | src/libstrongswan/library.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libstrongswan/library.c b/src/libstrongswan/library.c index 8472c30a5..c5bb4cd93 100644 --- a/src/libstrongswan/library.c +++ b/src/libstrongswan/library.c @@ -265,8 +265,11 @@ bool library_init(char *settings, const char *namespace) #ifdef LEAK_DETECTIVE lib->leak_detective = leak_detective_create(); - lib->leak_detective->set_report_cb(lib->leak_detective, - report_leaks, sum_leaks, NULL); + if (lib->leak_detective) + { + lib->leak_detective->set_report_cb(lib->leak_detective, + report_leaks, sum_leaks, NULL); + } #endif /* LEAK_DETECTIVE */ pfh = printf_hook_create(); |