diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-10-11 09:41:53 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-10-11 09:41:53 +0200 |
commit | 98a94a68b677074c2061133eb273c3f66d65a8ce (patch) | |
tree | 20d2c3babee63e08123b6652e6721d9e54754cfa | |
parent | 2aa16d3b1ea39622dfc35eb3093ac4c4f4997710 (diff) | |
parent | e1037b5b1fa7e31cc9182085899c65dadcba26da (diff) | |
download | rsyslog-98a94a68b677074c2061133eb273c3f66d65a8ce.tar.gz rsyslog-98a94a68b677074c2061133eb273c3f66d65a8ce.tar.xz rsyslog-98a94a68b677074c2061133eb273c3f66d65a8ce.zip |
Merge branch 'v6-devel'
Conflicts:
template.c
-rw-r--r-- | runtime/debug.c | 6 | ||||
-rw-r--r-- | template.c | 5 | ||||
-rw-r--r-- | tools/omfile.c | 1 |
3 files changed, 5 insertions, 7 deletions
diff --git a/runtime/debug.c b/runtime/debug.c index edc4a255..307a8bb8 100644 --- a/runtime/debug.c +++ b/runtime/debug.c @@ -927,12 +927,12 @@ dbgprint(obj_t *pObj, char *pszMsg, size_t lenMsg) pszObjName = obj.GetName(pObj); } -// pthread_mutex_lock(&mutdbgprint); -// pthread_cleanup_push(dbgMutexCancelCleanupHdlr, &mutdbgprint); + pthread_mutex_lock(&mutdbgprint); + pthread_cleanup_push(dbgMutexCancelCleanupHdlr, &mutdbgprint); do_dbgprint(pszObjName, pszMsg, lenMsg); -// pthread_cleanup_pop(1); + pthread_cleanup_pop(1); } #pragma GCC diagnostic warning "-Wempty-body" @@ -320,10 +320,6 @@ tplToJSON(struct template *pTpl, msg_t *pMsg, struct json_object **pjson) rsRetVal localRet; DEFiRet; - assert(pTpl != NULL); - assert(pMsg != NULL); - assert(json != NULL); - if(pTpl->subtree != NULL){ localRet = jsonFind(pMsg, pTpl->subtree, pjson); if(*pjson == NULL) { @@ -1847,6 +1843,7 @@ tplProcessCnf(struct cnfobj *o) pTpl->optFormatEscape = JSON_ESCAPE; finalize_it: + free(tplStr); if(pvals != NULL) cnfparamvalsDestruct(pvals, &pblk); if(iRet != RS_RET_OK) { diff --git a/tools/omfile.c b/tools/omfile.c index 2bb51e99..8969d16d 100644 --- a/tools/omfile.c +++ b/tools/omfile.c @@ -824,6 +824,7 @@ ENDcreateInstance BEGINfreeInstance CODESTARTfreeInstance + free(pData->tplName); free(pData->f_fname); if(pData->bDynamicName) { dynaFileFreeCache(pData); |