Merge pull request #5207 from sashashura/4658377717055488

Fix Invalid-free in Assimp::FBX::Scope::Scope
pull/5213/head
Kim Kulling 2023-08-17 10:27:36 +02:00 committed by GitHub
commit 72c10d856f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ Scope::Scope(Parser& parser,bool topLevel)
elements.insert(ElementMap::value_type(str, element));
return;
}
delete element;
delete_Element(element);
ParseError("unexpected end of file",parser.LastToken());
} else {
elements.insert(ElementMap::value_type(str, element));