summaryrefslogtreecommitdiffstats
path: root/omfwd.c
diff options
context:
space:
mode:
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