Infrastructure: remove potential memory leaks.
This commit is contained in:
parent
94dfb7a523
commit
e48b8d74e2
3 changed files with 5 additions and 5 deletions
|
|
@ -4989,7 +4989,7 @@ void TParseContext::inheritGlobalDefaults(TQualifier& dst) const
|
|||
//
|
||||
TVariable* TParseContext::makeInternalVariable(const char* name, const TType& type) const
|
||||
{
|
||||
TString* nameString = new TString(name);
|
||||
TString* nameString = NewPoolTString(name);
|
||||
TVariable* variable = new TVariable(nameString, type);
|
||||
symbolTable.makeInternalVariable(*variable);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue