Skip to content

Commit f93f0b5

Browse files
committed
Fix use-after-release issue with pg_identify_object_as_address()
Spotted by buildfarm member prion, with -DRELCACHE_FORCE_RELEASE. Introduced in f7aab36. Discussion: https://postgr.es/m/2759018.1619577848@sss.pgh.pa.us Backpatch-through: 9.6
1 parent f7aab36 commit f93f0b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/catalog/objectaddress.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5619,7 +5619,7 @@ getObjectIdentityParts(const ObjectAddress *object,
56195619
break;
56205620
}
56215621
trigForm = (Form_pg_event_trigger) GETSTRUCT(tup);
5622-
evtname = NameStr(trigForm->evtname);
5622+
evtname = pstrdup(NameStr(trigForm->evtname));
56235623
appendStringInfoString(&buffer, quote_identifier(evtname));
56245624
if (objname)
56255625
*objname = list_make1(evtname);

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