aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/indexcmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/commands/indexcmds.c')
-rw-r--r--src/backend/commands/indexcmds.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c
index ea07be69dbd..53971fc7258 100644
--- a/src/backend/commands/indexcmds.c
+++ b/src/backend/commands/indexcmds.c
@@ -3106,13 +3106,13 @@ ReindexRelationConcurrently(Oid relationOid, int options)
foreach(lc, indexIds)
{
Oid oldIndexId = lfirst_oid(lc);
- ObjectAddress *object = palloc(sizeof(ObjectAddress));
+ ObjectAddress object;
- object->classId = RelationRelationId;
- object->objectId = oldIndexId;
- object->objectSubId = 0;
+ object.classId = RelationRelationId;
+ object.objectId = oldIndexId;
+ object.objectSubId = 0;
- add_exact_object_address(object, objects);
+ add_exact_object_address(&object, objects);
}
/*