diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-20 14:02:33 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-20 14:02:33 +0000 |
commit | c6bebca3c76985016970d87e75dd025a169790b0 (patch) | |
tree | 1d429d1c82e9775de8dcf746dd5b4720d1c1fce6 /syslogd.c | |
parent | 33f061484d7456f0eb34f9ebab7a82e25ac26448 (diff) | |
download | rsyslog-c6bebca3c76985016970d87e75dd025a169790b0.tar.gz rsyslog-c6bebca3c76985016970d87e75dd025a169790b0.tar.xz rsyslog-c6bebca3c76985016970d87e75dd025a169790b0.zip |
changed rsCStrDestruct() to use the new interface conventions
Diffstat (limited to 'syslogd.c')
-rw-r--r-- | syslogd.c | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -989,15 +989,15 @@ selectorDestruct(void *pVal) assert(pThis != NULL); if(pThis->pCSHostnameComp != NULL) - rsCStrDestruct(pThis->pCSHostnameComp); + rsCStrDestruct(&pThis->pCSHostnameComp); if(pThis->pCSProgNameComp != NULL) - rsCStrDestruct(pThis->pCSProgNameComp); + rsCStrDestruct(&pThis->pCSProgNameComp); if(pThis->f_filter_type == FILTER_PROP) { if(pThis->f_filterData.prop.pCSPropName != NULL) - rsCStrDestruct(pThis->f_filterData.prop.pCSPropName); + rsCStrDestruct(&pThis->f_filterData.prop.pCSPropName); if(pThis->f_filterData.prop.pCSCompValue != NULL) - rsCStrDestruct(pThis->f_filterData.prop.pCSCompValue); + rsCStrDestruct(&pThis->f_filterData.prop.pCSCompValue); } else if(pThis->f_filter_type == FILTER_EXPR) { if(pThis->f_filterData.f_expr != NULL) exprDestruct(&pThis->f_filterData.f_expr); @@ -2697,13 +2697,11 @@ init(void) * free some objects that were just needed for loading it. rgerhards 2005-10-19 */ if(pDfltHostnameCmp != NULL) { - rsCStrDestruct(pDfltHostnameCmp); - pDfltHostnameCmp = NULL; + rsCStrDestruct(&pDfltHostnameCmp); } if(pDfltProgNameCmp != NULL) { - rsCStrDestruct(pDfltProgNameCmp); - pDfltProgNameCmp = NULL; + rsCStrDestruct(&pDfltProgNameCmp); } /* some checks */ |