mirror of
https://github.com/postgres/postgres.git
synced 2025-05-02 11:44:50 +03:00
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
This commit is contained in:
parent
f7aab36d61
commit
f93f0b5b25
@ -5619,7 +5619,7 @@ getObjectIdentityParts(const ObjectAddress *object,
|
||||
break;
|
||||
}
|
||||
trigForm = (Form_pg_event_trigger) GETSTRUCT(tup);
|
||||
evtname = NameStr(trigForm->evtname);
|
||||
evtname = pstrdup(NameStr(trigForm->evtname));
|
||||
appendStringInfoString(&buffer, quote_identifier(evtname));
|
||||
if (objname)
|
||||
*objname = list_make1(evtname);
|
||||
|
Loading…
x
Reference in New Issue
Block a user