Skip to content

Commit

Permalink
SWDEV-510089 Fix rocprof segfaulting on ctrl+c (#94)
Browse files Browse the repository at this point in the history
Change-Id: Iaa0f3856bb8fed174cbc935b85739414ecd44758

Signed-off-by: adapryor <[email protected]>
  • Loading branch information
adam360x authored Jan 21, 2025
1 parent 0490b1c commit 0ae4404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdc_libs/rdc_modules/rdc_rocp/RdcRocpCounterSampler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ CounterSampler::CounterSampler(rocprofiler_agent_id_t agent) : agent_(agent) {
"Could not setup buffered service", __FILE__, __LINE__);
}

CounterSampler::~CounterSampler() { rocprofiler_stop_context(ctx_); }
CounterSampler::~CounterSampler() { ctx_ = {}; }

const std::string& CounterSampler::decode_record_name(
const rocprofiler_record_counter_t& rec) const {
Expand Down

0 comments on commit 0ae4404

Please sign in to comment.