summaryrefslogtreecommitdiffstats
path: root/plugins/imuxsock
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-05-20 17:30:01 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-05-20 17:30:01 +0200
commit737614054caadf8340b638b368d43f55b7bb3741 (patch)
treee822ceb16e52c6deb4e9613c9acc34fe3a1845ce /plugins/imuxsock
parent8088f9b01a8344c63e7874836721c79d94a01d25 (diff)
downloadrsyslog-737614054caadf8340b638b368d43f55b7bb3741.tar.gz
rsyslog-737614054caadf8340b638b368d43f55b7bb3741.tar.xz
rsyslog-737614054caadf8340b638b368d43f55b7bb3741.zip
minor cleanup
Diffstat (limited to 'plugins/imuxsock')
-rw-r--r--plugins/imuxsock/imuxsock.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/imuxsock/imuxsock.c b/plugins/imuxsock/imuxsock.c
index 1d88a2b5..9a1e424c 100644
--- a/plugins/imuxsock/imuxsock.c
+++ b/plugins/imuxsock/imuxsock.c
@@ -324,11 +324,8 @@ CODESTARTafterRun
if (funixn[i] && funix[i] != -1)
unlink((char*) funixn[i]);
/* free no longer needed string */
- if(pLogSockName != NULL)
- free(pLogSockName);
- if(pLogHostName != NULL) {
- free(pLogHostName);
- }
+ free(pLogSockName);
+ free(pLogHostName);
discardFunixn();
nfunix = 1;