fix resource leak, coverity issue 1198844

This commit is contained in:
Dennis Luxen 2014-04-09 11:59:48 -04:00
parent 248df9ca2d
commit cb17a0a49b

View File

@ -145,7 +145,7 @@ public:
if(restriction_iterator == m_restriction_map.end()) {
index = m_restriction_bucket_list.size();
m_restriction_bucket_list.resize(index+1);
m_restriction_map[restrictionSource] = index;
restriction_iterator->second = index;
} else {
index = restriction_iterator->second;
//Map already contains an is_only_*-restriction