diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-07-20 12:18:20 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-07-20 12:18:20 +0200 |
commit | bf8125f4e96a011ec28cc58b225bb815f72fc53c (patch) | |
tree | 2431ecfe08b01c7ef1756cc8e2b5be9fd4a65c60 /runtime/wtp.h | |
parent | 4ec7b9d9ec12d91dde3d030bdaf87cfdd6b5d81d (diff) | |
download | rsyslog-bf8125f4e96a011ec28cc58b225bb815f72fc53c.tar.gz rsyslog-bf8125f4e96a011ec28cc58b225bb815f72fc53c.tar.xz rsyslog-bf8125f4e96a011ec28cc58b225bb815f72fc53c.zip |
bugfix: minor static memory leak while reading configuration
This did NOT leak based on message volume. Also, did some cleanup during
the commit.
Diffstat (limited to 'runtime/wtp.h')
-rw-r--r-- | runtime/wtp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/wtp.h b/runtime/wtp.h index 358ced3a..0505b91c 100644 --- a/runtime/wtp.h +++ b/runtime/wtp.h @@ -55,6 +55,7 @@ struct wtp_s { /* end sync variables */ /* user objects */ void *pUsr; /* pointer to user object (in this case, the queue the wtp belongs to) */ + pthread_attr_t attrThrd;/* attribute for new threads (created just once and cached here) */ pthread_mutex_t *pmutUsr; pthread_cond_t *pcondBusy; /* condition the user will signal "busy again, keep runing" on (awakes worker) */ rsRetVal (*pfChkStopWrkr)(void *pUsr, int); |