mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
fix for ZAM profiling potentially accessing freed memory
This commit is contained in:
parent
d611452116
commit
8c4c224c93
1 changed files with 1 additions and 1 deletions
|
@ -1438,7 +1438,7 @@ TraversalCode SetBlockLineNumbers::PreStmt(const Stmt* s) {
|
||||||
|
|
||||||
TraversalCode SetBlockLineNumbers::PostStmt(const Stmt* s) {
|
TraversalCode SetBlockLineNumbers::PostStmt(const Stmt* s) {
|
||||||
auto loc = const_cast<Location*>(s->GetLocationInfo());
|
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->first_line = r.first;
|
||||||
loc->last_line = r.second;
|
loc->last_line = r.second;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue