summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-01-27 15:07:04 -0800
committerTofu Linden <tofu.linden@lindenlab.com>2010-01-27 15:07:04 -0800
commitc5abe04923c8968c38fbca67182d7e3fbd0723d9 (patch)
tree53299c86c8e6283d06585e67adf6f57d96a74b36
parent7dc1e2eedbf29396b6614f8e7e39b7938dd5e301 (diff)
CID-188
Checker: RESOURCE_LEAK Function: LLTemplateParser::LLTemplateParser(LLTemplateTokenizer &) File: /indra/llmessage/llmessagetemplateparser.cpp
-rw-r--r--indra/llmessage/llmessagetemplateparser.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llmessage/llmessagetemplateparser.cpp b/indra/llmessage/llmessagetemplateparser.cpp
index 283547ea00..2ddbf3e0df 100644
--- a/indra/llmessage/llmessagetemplateparser.cpp
+++ b/indra/llmessage/llmessagetemplateparser.cpp
@@ -403,6 +403,10 @@ LLTemplateParser::LLTemplateParser(LLTemplateTokenizer & tokens):
{
mMessages.push_back(templatep);
}
+ else
+ {
+ delete templatep;
+ }
}
if(!tokens.wantEOF())