Found out why y_malloc was not correctly removing all of the stack.
Added "exact" parameters to y_amx.