Add memory leak fix where the reference count to the y_np was kept around one too many times.