"vscode:/vscode.git/clone" did not exist on "eda9435624b1e1bdd6801d95eca2d9f43f83fa3e"
Unverified Commit b5f4387a authored by Ramesh Errabolu's avatar Ramesh Errabolu Committed by GitHub
Browse files

Merge pull request #41 from RadeonOpenCompute/fixSignalLeak

Fix signal leak problem
parents 80050ad5 c4cfbb8f
......@@ -705,6 +705,16 @@ void RocmBandwidthTest::Run() {
}
void RocmBandwidthTest::Close() {
if (init_src_ != NULL) {
hsa_signal_destroy(init_signal_);
hsa_amd_memory_pool_free(init_src_);
}
if (validate_) {
hsa_amd_memory_pool_free(validate_dst_);
}
hsa_status_t status = hsa_shut_down();
ErrorCheck(status);
return;
......@@ -802,15 +812,6 @@ RocmBandwidthTest::~RocmBandwidthTest() {
delete link_type_matrix_;
delete link_weight_matrix_;
delete active_agents_list_;
if (init_src_ != NULL) {
hsa_signal_destroy(init_signal_);
hsa_amd_memory_pool_free(init_src_);
}
if (validate_) {
hsa_amd_memory_pool_free(validate_dst_);
}
}
std::string RocmBandwidthTest::GetVersion() const {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment