summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--omfwd.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f6af3d9f..bc9a7e70 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
---------------------------------------------------------------------------
Version 2.0.0 (rgerhards), 2007-12-26
- increased portability for older platforms (AI_NUMERICSERV moved)
+- removed socket leak in omfwd.c
---------------------------------------------------------------------------
Version 1.21.1 (rgerhards), 2007-12-23
- small doc fix for $IncludeConfig
diff --git a/omfwd.c b/omfwd.c
index d773b23a..16f30f16 100644
--- a/omfwd.c
+++ b/omfwd.c
@@ -181,6 +181,9 @@ CODESTARTfreeInstance
gss_base_service_name = NULL;
}
# endif
+ /* final cleanup */
+ if(pData->sock >= 0)
+ close(pData->sock);
ENDfreeInstance