Skip to content

Commit

Permalink
[L0] Double free during urEventReleaseInternal
Browse files Browse the repository at this point in the history
Signed-off-by: Zhang, Winston <winston.zhang@intel.com>
  • Loading branch information
winstonzhang-intel committed Dec 12, 2024
1 parent fbd8794 commit 3756b45
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion source/adapters/level_zero/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,6 @@ ur_result_t urEventReleaseInternal(ur_event_handle_t Event) {
// enabled or not, so we access properties of the queue and that's why queue
// must released later.
if (DisableEventsCaching || !Event->OwnNativeHandle) {
ZE_CALL_NOCHECK(zeEventDestroy, (Event->ZeEvent));
delete Event;
} else {
Event->Context->addEventToContextCache(Event);
Expand Down

0 comments on commit 3756b45

Please sign in to comment.