This is a memory leak.

It's best to pass the method as a plain C string literal to the `PyUFunc_CheckOverride` function, and let it allocate it.