diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-12 14:16:04 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-12 14:16:04 +0100 |
commit | 1f8be44f8e7f00390992ecbde656db02ab5c91a3 (patch) | |
tree | 5c5e6a9cbd2774cf92b9d76625337201aabfcae6 | |
parent | fea2aac3467a6c66c166bad2e5f65dad20c110df (diff) | |
download | rsyslog-1f8be44f8e7f00390992ecbde656db02ab5c91a3.tar.gz rsyslog-1f8be44f8e7f00390992ecbde656db02ab5c91a3.tar.bz2 rsyslog-1f8be44f8e7f00390992ecbde656db02ab5c91a3.zip |
ommail: small cleanup
-rw-r--r-- | plugins/ommail/ommail.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/ommail/ommail.c b/plugins/ommail/ommail.c index e1d4055e..910b371a 100644 --- a/plugins/ommail/ommail.c +++ b/plugins/ommail/ommail.c @@ -214,12 +214,9 @@ ENDisCompatibleWithFeature BEGINfreeInstance CODESTARTfreeInstance if(pData->iMode == 0) { - if(pData->md.smtp.pszSrv != NULL) - free(pData->md.smtp.pszSrv); - if(pData->md.smtp.pszSrvPort != NULL) - free(pData->md.smtp.pszSrvPort); - if(pData->md.smtp.pszFrom != NULL) - free(pData->md.smtp.pszFrom); + free(pData->md.smtp.pszSrv); + free(pData->md.smtp.pszSrvPort); + free(pData->md.smtp.pszFrom); lstRcptDestruct(pData->md.smtp.lstRcpt); } ENDfreeInstance |