diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-17 12:45:10 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-17 12:45:10 +0000 |
commit | ed0363210c34002e5cfbab553506573f5b8a13a5 (patch) | |
tree | 518ce37551ddb1803b3f8d0ced8599b8b04cb984 /stream.c | |
parent | 6b8b242250123d6c3105b48cde831ef749c88647 (diff) | |
download | rsyslog-ed0363210c34002e5cfbab553506573f5b8a13a5.tar.gz rsyslog-ed0363210c34002e5cfbab553506573f5b8a13a5.tar.xz rsyslog-ed0363210c34002e5cfbab553506573f5b8a13a5.zip |
worked on threading
Diffstat (limited to 'stream.c')
-rw-r--r-- | stream.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -324,10 +324,13 @@ finalize_it: /* destructor for the strm object */ -rsRetVal strmDestruct(strm_t *pThis) +rsRetVal strmDestruct(strm_t **ppThis) { + strm_t *pThis; DEFiRet; + assert(ppThis != NULL); + pThis = *ppThis; ISOBJ_TYPE_assert(pThis, strm); if(pThis->tOperationsMode == STREAMMODE_WRITE) @@ -342,6 +345,7 @@ rsRetVal strmDestruct(strm_t *pThis) /* and finally delete the strm objet itself */ free(pThis); + *ppThis = NULL; return iRet; } |