diff options
Diffstat (limited to 'Source/charon/daemon.c')
-rw-r--r-- | Source/charon/daemon.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/charon/daemon.c b/Source/charon/daemon.c index 736112dc8..f7d677631 100644 --- a/Source/charon/daemon.c +++ b/Source/charon/daemon.c @@ -21,6 +21,9 @@ */ #include <stdio.h> +#include <freeswan.h> +#include <pluto/constants.h> +#include <pluto/defs.h> #include "types.h" #include "tester.h" @@ -36,10 +39,12 @@ int main() tester->test_all(tester); - if (tester->destroy(tester) != SUCCESS) - { - return -1; - } + tester->destroy(tester); + +#ifdef LEAK_DETECTIVE + /* Leaks are reported in log file */ + report_leaks(); +#endif return 0; } |