summaryrefslogtreecommitdiffstats
path: root/omfwd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-25 16:25:35 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-25 16:25:35 +0000
commit187ab7e123c97b3091c78f6fb86412a3cec94569 (patch)
treef8485f080dfd9a67cc42869d20005d798f64518d /omfwd.c
parentcba4c88776a4d98d197c14ec9014f7abc973255e (diff)
downloadrsyslog-187ab7e123c97b3091c78f6fb86412a3cec94569.tar.gz
rsyslog-187ab7e123c97b3091c78f6fb86412a3cec94569.tar.xz
rsyslog-187ab7e123c97b3091c78f6fb86412a3cec94569.zip
moved some references to module data from syslogd.c to modules
Diffstat (limited to 'omfwd.c')
-rw-r--r--omfwd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/omfwd.c b/omfwd.c
index 94303288..e54a1fad 100644
--- a/omfwd.c
+++ b/omfwd.c
@@ -96,6 +96,12 @@ CODESTARTfreeInstance
free(f->f_un.f_forw.port);
break;
}
+# ifdef USE_PTHREADS
+ /* delete any mutex objects, if present */
+ if(f->f_un.f_forw.protocol == FORW_TCP) {
+ pthread_mutex_destroy(&f->f_un.f_forw.mtxTCPSend);
+ }
+# endif
ENDfreeInstance