Skip to content

Commit

Permalink
Fix owners memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
mbfrahry committed Oct 4, 2024
1 parent 3d969c4 commit e35ae5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/services/groups/group_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ func groupResourceUpdate(ctx context.Context, d *pluginsdk.ResourceData, meta in
}

existingOwners := make([]string, 0)
for resp.Model != nil {
if resp.Model != nil {
for _, o := range *resp.Model {
existingOwners = append(existingOwners, pointer.From(o.DirectoryObject().Id))
}
Expand Down
2 changes: 1 addition & 1 deletion internal/services/groups/group_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ resource "azuread_application" "test" {
resource "azuread_service_principal" "test" {
count = 27
application_id = azuread_application.test[count.index].application_id
client_id = azuread_application.test[count.index].client_id
}
resource "azuread_user" "test" {
Expand Down

0 comments on commit e35ae5c

Please sign in to comment.