summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-02-04 16:51:53 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-02-04 16:51:53 +0100
commit8149d06f97d94ec2ae1f3fe117a775f8dcd7ef75 (patch)
treeeba44b9103882a26915f2d13bd36fc2ed08541a1 /template.c
parent4cefc40064a07f6c9c8ab8def2ecbb87b336debe (diff)
parentd71e8672c90628fdfa58ad860833d78cfd5941d8 (diff)
downloadrsyslog-8149d06f97d94ec2ae1f3fe117a775f8dcd7ef75.tar.gz
rsyslog-8149d06f97d94ec2ae1f3fe117a775f8dcd7ef75.tar.xz
rsyslog-8149d06f97d94ec2ae1f3fe117a775f8dcd7ef75.zip
Merge branch 'beta'
Diffstat (limited to 'template.c')
-rw-r--r--template.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/template.c b/template.c
index 06cad211..23d4b62e 100644
--- a/template.c
+++ b/template.c
@@ -427,10 +427,7 @@ static int do_Constant(unsigned char **pp, struct template *pTpl)
}
if((pTpe = tpeConstruct(pTpl)) == NULL) {
- /* OK, we are out of luck. Let's invalidate the
- * entry and that's it.
- */
- pTpe->eEntryType = UNDEFINED;
+ rsCStrDestruct(&pStrB);
return 1;
}
pTpe->eEntryType = CONSTANT;