fix for ZAM profiling potentially accessing freed memory

This commit is contained in:
Vern Paxson 2024-04-08 17:05:36 -04:00 committed by Tim Wojtulewicz
parent d611452116
commit 8c4c224c93

View file

@ -1438,7 +1438,7 @@ TraversalCode SetBlockLineNumbers::PreStmt(const Stmt* s) {
TraversalCode SetBlockLineNumbers::PostStmt(const Stmt* s) {
auto loc = const_cast<Location*>(s->GetLocationInfo());
auto& r = block_line_range.back();
auto r = block_line_range.back();
loc->first_line = r.first;
loc->last_line = r.second;