Revert "fix: prevent double-free crash during process exit in amd-smi (#2213)" (#2640)

This reverts commit 7b00d3a89b.

The workaround is no longer needed - root cause fixed in:
- rocm-smi-lib (PR #2531): Made devInfoTypesStrings file-local static
- amdsmi (PR #2575): Added visibility("hidden") attribute
This commit is contained in:
habajpai-amd
2026-01-17 02:38:52 +05:30
committed by GitHub
parent 005f07004d
commit b53c99669c
3 changed files with 7 additions and 37 deletions
@@ -1272,7 +1272,10 @@ shutdown()
try
{
data::shutdown();
if(data::shutdown())
{
ROCPROFSYS_AMD_SMI_CALL(amdsmi_shut_down());
}
} catch(std::runtime_error& _e)
{
LOG_WARNING("Exception thrown when shutting down amd-smi: {}", _e.what());