aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--daemon/syslogd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/daemon/syslogd.c b/daemon/syslogd.c
index af50793..439152b 100644
--- a/daemon/syslogd.c
+++ b/daemon/syslogd.c
@@ -602,7 +602,10 @@ static void shutdown_internal_sources()
internal_source_count = 0;
if( internal_source_references )
+ {
g_free( internal_source_references );
+ internal_source_references = NULL;
+ }
TRACE_LEAVE( "done\n" );
}
@@ -617,10 +620,16 @@ static void fini_internal_sources()
shutdown_internal_sources();
if( internal_message_queue )
+ {
fifo_destroy( internal_message_queue );
+ internal_message_queue = NULL;
+ }
if( internal_queue_semaphore )
+ {
CloseHandle( internal_queue_semaphore );
+ internal_queue_semaphore = NULL;
+ }
TRACE_LEAVE( "done\n" );
}