Skip to content

Commit

Permalink
Fix SWDEV-473314 by avoiding empty unique_ptr dereference (#371)
Browse files Browse the repository at this point in the history
- Revert part of b134a68
	modifying source/lib/omnitrace/library/components/roctracer.cpp
  • Loading branch information
jamesxu2 authored Aug 27, 2024
1 parent 6b0627f commit 395c330
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions source/lib/omnitrace/library/components/roctracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,7 @@ void
roctracer::shutdown()
{
auto_lock_t _lk{ type_mutex<roctracer>() };
if(!roctracer_is_setup())
{
if(!roctracer_is_init() && tim::storage<comp::roctracer_data>::instance())
tim::storage<comp::roctracer_data>::instance()->reset();
return;
}
if(!roctracer_is_setup()) return;

roctracer_is_setup() = false;

Expand Down

0 comments on commit 395c330

Please sign in to comment.