summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-12-26 17:32:43 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-12-26 17:32:43 +0000
commit57ebcb05f5510ba6ac41875e5363987766acd938 (patch)
tree062d0771af7c7e8080dee601ab7e3513e680a20e
parent99936729cdd81a628b61e62197069ab2e3ea7a58 (diff)
downloadrsyslog-57ebcb05f5510ba6ac41875e5363987766acd938.tar.gz
rsyslog-57ebcb05f5510ba6ac41875e5363987766acd938.tar.xz
rsyslog-57ebcb05f5510ba6ac41875e5363987766acd938.zip
removed socket leak in omfwd.c
-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