aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryaworsky <yaworsky>2005-10-31 14:06:09 +0000
committeryaworsky <yaworsky>2005-10-31 14:06:09 +0000
commit5672ec2412c775691ee51f6427e3ba2d0a0b9457 (patch)
tree9d2521f90a52dff929481b7cfeef37452889a8d4
parent74b7b6121179f8a82a2f96812c9a33e3f650eaed (diff)
downloadsyslog-win32-5672ec2412c775691ee51f6427e3ba2d0a0b9457.tar.gz
syslog-win32-5672ec2412c775691ee51f6427e3ba2d0a0b9457.tar.xz
syslog-win32-5672ec2412c775691ee51f6427e3ba2d0a0b9457.zip
Clear disposed data
-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" );
}