MDEV-5816: Stored programs: validation of stored program statements
Fixed memory leakage taken place on execution of the statement SHOW CREATE PACKAGE pkg_name The memory leak was caused by implementation of sp_compile() where a mempory root for stored routine was allocated but a pointer to the new memory root wasn't passed to sp_package::create for subsequent forwarding to the constructor of sp_package. Instead, another one mempory root was allocated and the pointer to the original memroot was missed.
Showing
Please register or sign in to comment