1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-20 15:22:23 +03: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:
Joe Conway
2012-05-09 22:57:19 -07:00
parent fd71421b01
commit b58bacdacb

View File

@ -2472,6 +2472,7 @@ exec_stmt_return_next(PLpgSQL_execstate *estate,
{
tuple = do_convert_tuple(tuple, tupmap);
free_conversion_map(tupmap);
free_tuple = true;
}
}
break;