Skip to content

Commit

Permalink
teams: free allocated team if invalid config_mask
Browse files Browse the repository at this point in the history
  • Loading branch information
davidozog committed Jun 24, 2024
1 parent ea5cf5e commit 5c96fdf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/shmem_team.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ int shmem_internal_team_split_strided(shmem_internal_team_t *parent_team, int PE
} else {
if (config_mask != SHMEM_TEAM_NUM_CONTEXTS) {
RAISE_WARN_MSG("Invalid team_split_strided config_mask (%ld)\n", config_mask);
free(myteam);
return -1;
} else {
shmem_internal_assertp(config->num_contexts >= 0);
Expand Down

0 comments on commit 5c96fdf

Please sign in to comment.