Skip to content

Commit 4d20119

Browse files
bdracoijl
authored andcommitted
Fix segmentation fault on dealloc
1 parent e11dd49 commit 4d20119

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/typeref.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ unsafe fn look_up_json_exc() -> *mut PyObject {
184184
Py_DECREF(ptr);
185185
Py_DECREF(module_dict);
186186
Py_DECREF(module);
187+
Py_INCREF(res);
187188
res
188189
}
189190

0 commit comments

Comments
 (0)