Commit 964e03c0 authored by Michael Klemm's avatar Michael Klemm
Browse files

Fix issue #73 by using the proper delete[] operator

parent 13fe6442
......@@ -341,7 +341,7 @@ void RocmBandwidthTest::DisplayCopyTimeMatrix(bool peak) const {
double* perf_matrix = new double[agent_index_ * agent_index_]();
PopulatePerfMatrix(peak, perf_matrix);
PrintPerfMatrix(false, peak, perf_matrix);
free(perf_matrix);
delete[] perf_matrix;
}
void RocmBandwidthTest::DisplayValidationMatrix() const {
......@@ -349,7 +349,7 @@ void RocmBandwidthTest::DisplayValidationMatrix() const {
double* perf_matrix = new double[agent_index_ * agent_index_]();
PopulatePerfMatrix(true, perf_matrix);
PrintPerfMatrix(true, true, perf_matrix);
free(perf_matrix);
delete[] perf_matrix;
}
void RocmBandwidthTest::DisplayDevInfo() 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