mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Avoid a possible relcache leak in get_object_address_attribute.
There's no apparent way to trigger this, so I'm not going to worry about back-patching it for now. But it's still wrong. Marti Raudsepp
This commit is contained in:
parent
a5bca4ef03
commit
5709b8acc6
@ -1024,6 +1024,7 @@ get_object_address_attribute(ObjectType objtype, List *objname,
|
||||
address.classId = RelationRelationId;
|
||||
address.objectId = InvalidOid;
|
||||
address.objectSubId = InvalidAttrNumber;
|
||||
relation_close(relation, lockmode);
|
||||
return address;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user