From cb17a0a49b7b34ddabb7814c2198a81d8fdc24c8 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Wed, 9 Apr 2014 11:59:48 -0400 Subject: [PATCH] fix resource leak, coverity issue 1198844 --- Algorithms/StronglyConnectedComponents.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/StronglyConnectedComponents.h b/Algorithms/StronglyConnectedComponents.h index e0245ef38..be6ddb7e7 100644 --- a/Algorithms/StronglyConnectedComponents.h +++ b/Algorithms/StronglyConnectedComponents.h @@ -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