From d920ff7f5488b1154e159f79a7ea0678b5d341fb Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Thu, 15 Feb 2024 17:49:38 +0900 Subject: [PATCH] Fix leaked KrkLong in rshift_z --- src/obj_long.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/obj_long.c b/src/obj_long.c index 43f0563..cd31d14 100644 --- a/src/obj_long.c +++ b/src/obj_long.c @@ -1538,6 +1538,7 @@ static void _krk_long_rshift_z(krk_long out, krk_long val, size_t amount) { krk_long_init_si(&one, 1); krk_long_add(out,out,&one); krk_long_set_sign(out,-1); + krk_long_clear(&one); } }