Skip to content
Snippets Groups Projects
Commit 4ba95cac authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Fix a regression memory leak introduced by refactoring.

Fix a memory leak in Lua stored procedures introduced
when cherry-picking changes from the old net-split
tree.

Make a palloc savepoint *before* we allocate txn
and port, to make sure txn and port memory is freed
when rolling back to the palloc savepoint.
Otherwise a long-running Lua procedure (e.g. background
fiber) can keep allocating palloc memory indefinitely.
parent 82c4e671
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment