Skip to content

Commit

Permalink
TSAN
Browse files Browse the repository at this point in the history
  • Loading branch information
eisenhauer committed May 24, 2021
1 parent 52f0602 commit 07689f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/adios2/toolkit/sst/cp/cp_reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -2257,6 +2257,7 @@ extern void SstReaderClose(SstStream Stream)
free(Stream->CurrentMetadata);
Stream->CurrentMetadata = NULL;
}
STREAM_MUTEX_LOCK(Stream);
for (int i = 0; i < Stream->InternalMetaMetaCount; i++)
{
free(Stream->InternalMetaMetaInfo[i].ID);
Expand All @@ -2271,6 +2272,7 @@ extern void SstReaderClose(SstStream Stream)
}
free(Stream->InternalAttrDataInfo);
}
STREAM_MUTEX_UNLOCK(Stream);
}

// SstWaitForCompletion is only called by the main program thread and
Expand Down

0 comments on commit 07689f7

Please sign in to comment.