mirror of
https://github.com/postgres/postgres.git
synced 2026-05-28 04:35:45 -04:00
Fixed not free'd heap tuple if BEFORE DELETE trigger procedure
returns new created tuple instead of the one given to it. Jan
This commit is contained in:
parent
92c6b5d7b9
commit
ccf330d67e
1 changed files with 2 additions and 0 deletions
|
|
@ -684,6 +684,8 @@ ExecBRDeleteTriggers(Relation rel, ItemPointer tupleid)
|
|||
newtuple = ExecCallTriggerFunc(trigger[i]);
|
||||
if (newtuple == NULL)
|
||||
break;
|
||||
if (newtuple != trigtuple)
|
||||
pfree(newtuple);
|
||||
}
|
||||
CurrentTriggerData = NULL;
|
||||
pfree(SaveTriggerData);
|
||||
|
|
|
|||
Loading…
Reference in a new issue