summaryrefslogtreecommitdiffstats
path: root/stream.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-17 12:45:10 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-17 12:45:10 +0000
commited0363210c34002e5cfbab553506573f5b8a13a5 (patch)
tree518ce37551ddb1803b3f8d0ced8599b8b04cb984 /stream.c
parent6b8b242250123d6c3105b48cde831ef749c88647 (diff)
downloadrsyslog-ed0363210c34002e5cfbab553506573f5b8a13a5.tar.gz
rsyslog-ed0363210c34002e5cfbab553506573f5b8a13a5.tar.xz
rsyslog-ed0363210c34002e5cfbab553506573f5b8a13a5.zip
worked on threading
Diffstat (limited to 'stream.c')
-rw-r--r--stream.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/stream.c b/stream.c
index 27fc8a41..15d9dcf6 100644
--- a/stream.c
+++ b/stream.c
@@ -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;
}