'Dispatcher returns a new reference.
It need to workaround it for now.'

def test_issue_with_return_leak(self):

    @nrtjit
    def inner(out):
        return out
    def pyfunc(x):
        return inner(x)
    cfunc = nrtjit(pyfunc)
    arr = np.arange(10)
    old_refct = sys.getrefcount(arr)
    self.assertEqual(old_refct, sys.getrefcount(pyfunc(arr)))
    self.assertEqual(old_refct, sys.getrefcount(cfunc(arr)))
    self.assertEqual(old_refct, sys.getrefcount(arr))
