diff options
Diffstat (limited to 'src/comm/CactusDefaultComm.c')
-rw-r--r-- | src/comm/CactusDefaultComm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/comm/CactusDefaultComm.c b/src/comm/CactusDefaultComm.c index 75d133c3..6b16fa90 100644 --- a/src/comm/CactusDefaultComm.c +++ b/src/comm/CactusDefaultComm.c @@ -746,6 +746,7 @@ int CactusDefaultGroupStorageDecrease (const cGH *GH, int n_groups, int *status) { int i, value, retval; + char *gname; /* Has the normal group storage been overloaded ? */ @@ -762,7 +763,9 @@ int CactusDefaultGroupStorageDecrease (const cGH *GH, int n_groups, value = 0; if(timelevels[i] == 0) { - value = CCTK_DisableGroupStorage(GH, CCTK_GroupName(groups[i])); + gname = CCTK_GroupName(groups[i]); + value = CCTK_DisableGroupStorage(GH, gname); + free (gname); if (value) { value = CCTK_NumTimeLevelsI(groups[i]); |