summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-09-22 15:50:03 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-09-22 15:50:03 +0200
commitf0732cb75b237f6a853dadb0c6cff5d6bef62952 (patch)
tree77f4e493a0b59abfca9c14998f3071343f2089e5 /plugins
parentbcb97650683bbcb1ecdacd0c2a6052ef836d3eda (diff)
parent1b2270ad3a6a78b1d11a7f7639208a42aabce578 (diff)
downloadrsyslog-f0732cb75b237f6a853dadb0c6cff5d6bef62952.tar.gz
rsyslog-f0732cb75b237f6a853dadb0c6cff5d6bef62952.tar.xz
rsyslog-f0732cb75b237f6a853dadb0c6cff5d6bef62952.zip
Merge branch 'beta'
Diffstat (limited to 'plugins')
-rw-r--r--plugins/imudp/imudp.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/imudp/imudp.c b/plugins/imudp/imudp.c
index 64413e45..5792a999 100644
--- a/plugins/imudp/imudp.c
+++ b/plugins/imudp/imudp.c
@@ -248,10 +248,14 @@ CODESTARTafterRun
net.clearAllowedSenders (net.pAllowedSenders_UDP);
net.pAllowedSenders_UDP = NULL;
}
- if(udpLstnSocks != NULL)
+ if(udpLstnSocks != NULL) {
net.closeUDPListenSockets(udpLstnSocks);
- if(pRcvBuf != NULL)
+ udpLstnSocks = NULL;
+ }
+ if(pRcvBuf != NULL) {
free(pRcvBuf);
+ pRcvBuf = NULL;
+ }
ENDafterRun