• Dmitry Shulga's avatar
    MDEV-5816: Stored programs: validation of stored program statements · 8eb903e1
    Dmitry Shulga authored
    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.
    8eb903e1
sp_head.cc 115 KB