Content-Length: 255863 | pFad | http://github.com/postgrespro/postgres/commit/5709b8acc67d80584e9623a1d355374b580c95e8

81 Avoid a possible relcache leak in get_object_address_attribute. · postgrespro/postgres@5709b8a · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/5709b8acc67d80584e9623a1d355374b580c95e8

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy