diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c index ea07be69db..53971fc725 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); } /*