Skip to content

Commit

Permalink
Fix object release
Browse files Browse the repository at this point in the history
Signed-off-by: Emanuele Giaquinta <[email protected]>
  • Loading branch information
exg committed Nov 18, 2024
1 parent 8d1c138 commit 663cd83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serialize/serializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub fn serialize(
match res {
Ok(_) => Ok(buf.finish()),
Err(err) => {
ffi!(_Py_Dealloc(buf.finish().as_ptr()));
ffi!(Py_DECREF(buf.finish().as_ptr()));
Err(err.to_string())
}
}
Expand Down

0 comments on commit 663cd83

Please sign in to comment.