Fix memory leak when converting to u128 and i128
This commit is contained in:
parent
5523ad6d5b
commit
672cf62272
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue