SWDEV-510089 Fix rocprof segfaulting on ctrl+c (#94)

Change-Id: Iaa0f3856bb8fed174cbc935b85739414ecd44758

Signed-off-by: adapryor <Adam.pryor@amd.com>
이 커밋은 다음에 포함됨:
Pryor, Adam 작성하고 GitHub가 2025-01-21 10:30:31 -06:00를 커밋함
1 부모 0490b1c925
커밋 0ae4404a09
1 파일이 변경됨
+1 -1
+1 -1
파일 보기
@@ -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 {