diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-01-27 15:07:04 -0800 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-01-27 15:07:04 -0800 |
commit | c5abe04923c8968c38fbca67182d7e3fbd0723d9 (patch) | |
tree | 53299c86c8e6283d06585e67adf6f57d96a74b36 | |
parent | 7dc1e2eedbf29396b6614f8e7e39b7938dd5e301 (diff) |
CID-188
Checker: RESOURCE_LEAK
Function: LLTemplateParser::LLTemplateParser(LLTemplateTokenizer &)
File: /indra/llmessage/llmessagetemplateparser.cpp
-rw-r--r-- | indra/llmessage/llmessagetemplateparser.cpp | 4 |
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()) |