From 0dca36ffbf589c16464689ebcfc050bf8a34ca56 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 9 Sep 2010 20:50:55 +0200 Subject: fixed some memory leaks --- tests/daemon/testd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/daemon/testd.c b/tests/daemon/testd.c index 14b7c7a..a1b4f06 100644 --- a/tests/daemon/testd.c +++ b/tests/daemon/testd.c @@ -201,7 +201,10 @@ int main( int argc, char *argv[] ) { wolf_log( WOLF_LOG_NOTICE, WOLF_CATEGORY_DAEMON, WOLF_MSG_DAEMON_STOPPED_DAEMON, _( "Stopped %s daemon" ), CMDLINE_PARSER_PACKAGE ); + wolf_log_closelogtofile( ); + if( !args_info.foreground_given ) { + wolf_log_closelogtosyslog( ); cmdline_parser_free( &args_info ); wolf_daemon_exit( demon ); } else { -- cgit v1.2.3-54-g00ecf