• Alexander Nozdrin's avatar
    Patch for Bug#12374486 - SEVERE MEMORY LEAK IN PREPARED STATEMENTS · 32a41e5a
    Alexander Nozdrin authored
    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.
    32a41e5a
mysql.h 27.5 KB