mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-25 16:43:17 -06:00
add INCREF in embed()
This commit is contained in:
1 parent
bfc2ab27e6
commit
d1c25ce1c1
1 file changed
+2
-1
@@ -410,7 +410,8 @@ PGF_embed(PGFObject* self, PyObject *modname)
|
||||
Py_DECREF(m);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Py_INCREF(m);
|
||||
return m;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user