3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-20 04:43:40 +00:00

verilog: Squash a memory leak.

That was added in ecc22f7fed
This commit is contained in:
Marcelina Kościelnicka 2021-06-14 16:28:10 +02:00
parent 438bcc68c0
commit 801ecc0e1d
4 changed files with 14 additions and 19 deletions

View file

@ -103,7 +103,7 @@ static bool isUserType(std::string &s)
{
// check current scope then outer scopes for a name
for (auto it = user_type_stack.rbegin(); it != user_type_stack.rend(); ++it) {
if ((*it)->count(s) > 0) {
if (it->count(s) > 0) {
return true;
}
}