diff options
author | Ali Saidi <Ali.Saidi@ARM.com> | 2012-05-10 18:04:27 -0500 |
---|---|---|
committer | Ali Saidi <Ali.Saidi@ARM.com> | 2012-05-10 18:04:27 -0500 |
commit | 5ecaf30219d8a846f2747d4d67503c21c6e13333 (patch) | |
tree | 44a04405c74c9c3441f2a775cf3360cc46f5e8f3 /src/sim | |
parent | da10fbf5ca53313e20b19457fad780bd6c8930b2 (diff) | |
download | gem5-5ecaf30219d8a846f2747d4d67503c21c6e13333.tar.xz |
gem5: fix a number of use after free issues
Diffstat (limited to 'src/sim')
-rw-r--r-- | src/sim/eventq.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sim/eventq.hh b/src/sim/eventq.hh index c859823c8..e7d088e80 100644 --- a/src/sim/eventq.hh +++ b/src/sim/eventq.hh @@ -516,11 +516,11 @@ EventQueue::deschedule(Event *event) event->flags.clear(Event::Squashed); event->flags.clear(Event::Scheduled); - if (event->flags.isSet(Event::AutoDelete)) - delete event; - if (DTRACE(Event)) event->trace("descheduled"); + + if (event->flags.isSet(Event::AutoDelete)) + delete event; } inline void |