diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-10-11 11:45:05 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-10-11 11:45:05 +0200 |
commit | 406f20f0cfa1b8a95a041400d99d606809590036 (patch) | |
tree | 3950bbe4691cc7e5cd39c0e2b89b0a2acc66ff13 /tools/omfile.c | |
parent | b6a66de263945b1d7147bb32aa03cc3c230f2b61 (diff) | |
download | rsyslog-406f20f0cfa1b8a95a041400d99d606809590036.tar.gz rsyslog-406f20f0cfa1b8a95a041400d99d606809590036.tar.bz2 rsyslog-406f20f0cfa1b8a95a041400d99d606809590036.zip |
fix double-free
Diffstat (limited to 'tools/omfile.c')
-rw-r--r-- | tools/omfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/omfile.c b/tools/omfile.c index efdb61a1..5b0bfb46 100644 --- a/tools/omfile.c +++ b/tools/omfile.c @@ -961,7 +961,7 @@ CODESTARTnewActInst ABORT_FINALIZE(RS_RET_MISSING_CNFPARAMS); } - tplToUse = (pData->tplName == NULL) ? ustrdup(getDfltTpl()) : pData->tplName; + tplToUse = ustrdup((pData->tplName == NULL) ? getDfltTpl() : pData->tplName); CHKiRet(OMSRsetEntry(*ppOMSR, 0, tplToUse, OMSR_NO_RQD_TPL_OPTS)); if(pData->bDynamicName) { |