Skip to content

Commit 62841bf

Browse files
authored
fix reference count leak in PyFrame::new (#6094)
1 parent 6dcd039 commit 62841bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/types/frame.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ impl PyFrame {
4343
unsafe {
4444
Ok(ffi::PyFrame_New(
4545
state,
46-
code.into_ptr().cast(),
46+
code.as_ptr().cast(),
4747
globals.as_ptr(),
4848
locals.as_ptr(),
4949
)

0 commit comments

Comments
 (0)