Iterator may be invalidated.

This commit is contained in:
Bartosz Taudul 2020-02-29 17:08:02 +01:00
parent 4843a1d458
commit c18584fdbc

View File

@ -5430,6 +5430,7 @@ void Worker::UpdateSampleStatisticsImpl( const CallstackFrameData** frames, uint
m_slab.Unalloc( memsize );
}
sym0 = m_data.symbolStats.find( frame0.symAddr );
auto sit = sym0->second.parents.find( idx );
if( sit == sym0->second.parents.end() )
{