Skip to content

Commit

Permalink
Merge pull request #1139 from davidozog/pr/teams_mem_leak
Browse files Browse the repository at this point in the history
teams: free allocated team if invalid config_mask
  • Loading branch information
davidozog committed Jun 25, 2024
2 parents 2436203 + 5c96fdf commit 95d18e4
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 95d18e4

Please sign in to comment.