Skip to content

Commit

Permalink
Possibly fix leak when an ondemand request comes in just before close (
Browse files Browse the repository at this point in the history
  • Loading branch information
eisenhauer authored Oct 18, 2024
1 parent f1febb7 commit 79f6efe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/adios2/toolkit/sst/cp/cp_writer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1534,6 +1534,12 @@ void SstWriterClose(SstStream Stream)
free(Stream->ReleaseList);
Stream->ReleaseList = NULL;
}
while (Stream->StepRequestQueue)
{
StepRequest Request = Stream->StepRequestQueue;
Stream->StepRequestQueue = Request->Next;
free(Request);
}
while (Stream->QueuedTimesteps)
{
CP_verbose(Stream, PerStepVerbose,
Expand Down

0 comments on commit 79f6efe

Please sign in to comment.