On 5/5/11 9:34 AM, Alexander Nozdrin wrote:
> #Atfile:///home/alik/MySQL/bzr/00/bug12374486/mysql-5.5-bug12374486/ based
> 3490 Alexander Nozdrin 2011-05-05
> Patch for Bug#12374486 - SEVERE MEMORY LEAK IN PREPARED STATEMENTS
> THAT CALL STORED PROCEDURES.
> The bug was introduced by WL#4435. The problem was that if a stored
> procedure generated a few result sets with different set of columns,
> a new memory would be allocated after every EXECUTE for every
> result set.
> The fix is to introduce a new memory root in scope of MYSQL_STMT,
> and to store result-set metadata in that memory root.
OK to push.