Fix memory leak when converting to u128 and i128

This commit is contained in:
Erik Johnston 2021-05-26 12:19:46 +01:00
parent 5523ad6d5b
commit 672cf62272

View file

@ -199,6 +199,7 @@ mod fast_128bit_int_conversion {
1,
$is_signed,
);
ffi::Py_DECREF(num);
if ok == -1 {
Err(PyErr::fetch(ob.py()))
} else {