Skip to content

Commit

Permalink
Merge pull request pmodels#12 from shawnccx/test_malloc_fix
Browse files Browse the repository at this point in the history
Add MPI_Win_free in gmr_create when aggregate_size = 0
  • Loading branch information
jeffhammond authored Nov 22, 2017
2 parents 29d4b1e + 8203e8f commit c8928da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gmr.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ gmr_t *gmr_create(gmr_size_t local_size, void **base_ptrs, ARMCI_Group *group) {
if (aggregate_size == 0) {
free(alloc_slices);
free(mreg->slices);
MPI_Win_free(&mreg->window);
free(mreg);

for (i = 0; i < alloc_nproc; i++)
Expand Down

0 comments on commit c8928da

Please sign in to comment.