mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
PL/pgSQL RETURN NEXT was leaking converted tuples, causing
out of memory when looping through large numbers of rows. Flag the converted tuples to be freed. Complaint and patch by Joe.
This commit is contained in:
parent
e7c43ddc26
commit
05a8689123
1 changed files with 1 additions and 0 deletions
|
|
@ -2431,6 +2431,7 @@ exec_stmt_return_next(PLpgSQL_execstate *estate,
|
|||
{
|
||||
tuple = do_convert_tuple(tuple, tupmap);
|
||||
free_conversion_map(tupmap);
|
||||
free_tuple = true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue