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