v.18.12Bug Fix

Fixed memory leak in table insertion with complex AggregateFunction columns

Fixed a memory leak when inserting into a table with AggregateFunction columns, if the state of the aggregate function is not simple (allocates memory separately), and if a single insertion request results in multiple small blocks. #3084