summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-02-04 16:51:43 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-02-04 16:51:43 +0100
commitd71e8672c90628fdfa58ad860833d78cfd5941d8 (patch)
tree3706d77ffcf7c97c6cf75aa61453cf677e531a88 /template.c
parent90455378415e06bfee9109c77b8a595da1326f78 (diff)
parentef193bf0ae75d206e4b50022f8c07e3b908c8491 (diff)
downloadrsyslog-d71e8672c90628fdfa58ad860833d78cfd5941d8.tar.gz
rsyslog-d71e8672c90628fdfa58ad860833d78cfd5941d8.tar.xz
rsyslog-d71e8672c90628fdfa58ad860833d78cfd5941d8.zip
Merge branch 'v4-beta' into 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;