check for uninitialized context array on final dump in the case if the test failed

[ROCm/rocprofiler commit: ccdb4fce0e]
This commit is contained in:
Evgeny
2017-12-22 12:39:55 -06:00
والد c165aa7e6a
کامیت 3c694b0d42
@@ -242,7 +242,7 @@ void dump_context_array() {
exit(1);
}
for (auto& v : *context_array) dump_context(&v.second);
if (context_array) for (auto& v : *context_array) dump_context(&v.second);
if (pthread_mutex_unlock(&mutex) != 0) {
perror("pthread_mutex_unlock");