Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0d05a3a

Browse filesBrowse 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 6e41ff0 commit 0d05a3a
Copy full SHA for 0d05a3a

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/backend/catalog/objectaddress.c

Copy file name to clipboardExpand all lines: src/backend/catalog/objectaddress.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4681,7 +4681,7 @@ getObjectIdentityParts(const ObjectAddress *object,
46814681
elog(ERROR, "cache lookup failed for event trigger %u",
46824682
object->objectId);
46834683
trigForm = (Form_pg_event_trigger) GETSTRUCT(tup);
4684-
evtname = NameStr(trigForm->evtname);
4684+
evtname = pstrdup(NameStr(trigForm->evtname));
46854685
appendStringInfoString(&buffer, quote_identifier(evtname));
46864686
if (objname)
46874687
*objname = list_make1(evtname);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.