fixing resources releasing

This commit is contained in:
Evgeny
2018-01-22 17:02:46 -06:00
parent c00a0feb36
commit 9a9418ad16
14 changed files with 145 additions and 323 deletions
+2
View File
@@ -184,6 +184,8 @@ void output_results(FILE* file, const rocprofiler_feature_t* features, const uns
ptr = chunk_data + off;
size += chunk_size;
}
free(p->data.result_bytes.ptr);
fprintf(file, "size(%lu)\n", size);
if (size > p->data.result_bytes.size) {
fprintf(stderr, "SQTT data size is out of the result buffer size\n");