(mp) (rd) (kp) can cause memory leaks with y type