Skip to content

Commit 5709b8a

Browse files
committed
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
1 parent a5bca4e commit 5709b8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/catalog/objectaddress.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,7 @@ get_object_address_attribute(ObjectType objtype, List *objname,
10241024
address.classId = RelationRelationId;
10251025
address.objectId = InvalidOid;
10261026
address.objectSubId = InvalidAttrNumber;
1027+
relation_close(relation, lockmode);
10271028
return address;
10281029
}
10291030

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy