Skip to content

Commit

Permalink
Merge pull request #1924 from eisenhauer/DPIDsave
Browse files Browse the repository at this point in the history
Save EVPath DP ID so we can release it on close
  • Loading branch information
eisenhauer authored Jan 2, 2020
2 parents 91ba7fd + 788b131 commit 12d44ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/adios2/toolkit/sst/dp/evpath_dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ typedef struct _Evpath_RS_Stream

/* queued timestep info */
struct _RSTimestepEntry *QueuedTimesteps;
struct _EvpathReaderContactInfo *MyContactInfo;
} * Evpath_RS_Stream;

typedef struct _Evpath_WSR_Stream
Expand Down Expand Up @@ -290,6 +291,7 @@ static DP_RS_Stream EvpathInitReader(CP_Services Svcs, void *CP_Stream,

Contact->ContactString = EvpathContactString;
Contact->RS_Stream = Stream;
Stream->MyContactInfo = Contact;

*ReaderContactInfoPtr = Contact;

Expand All @@ -305,6 +307,8 @@ static void EvpathDestroyReader(CP_Services Svcs, DP_RS_Stream RS_Stream_v)
free(RS_Stream->WriterContactInfo[i].ContactString);
}
free(RS_Stream->WriterContactInfo);
free(RS_Stream->MyContactInfo->ContactString);
free(RS_Stream->MyContactInfo);
free(RS_Stream);
}

Expand Down

0 comments on commit 12d44ba

Please sign in to comment.