fix resource leak, coverity issue 1198844
This commit is contained in:
parent
248df9ca2d
commit
cb17a0a49b
@ -145,7 +145,7 @@ public:
|
|||||||
if(restriction_iterator == m_restriction_map.end()) {
|
if(restriction_iterator == m_restriction_map.end()) {
|
||||||
index = m_restriction_bucket_list.size();
|
index = m_restriction_bucket_list.size();
|
||||||
m_restriction_bucket_list.resize(index+1);
|
m_restriction_bucket_list.resize(index+1);
|
||||||
m_restriction_map[restrictionSource] = index;
|
restriction_iterator->second = index;
|
||||||
} else {
|
} else {
|
||||||
index = restriction_iterator->second;
|
index = restriction_iterator->second;
|
||||||
//Map already contains an is_only_*-restriction
|
//Map already contains an is_only_*-restriction
|
||||||
|
Loading…
Reference in New Issue
Block a user