mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-04 03:15:26 -07: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);
|
Py_DECREF(m);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Py_INCREF(m);
|
||||||
return m;
|
return m;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user