add INCREF in embed()

This commit is contained in:
krangelov
2021-10-22 09:52:36 +02:00
parent bfc2ab27e6
commit d1c25ce1c1

View File

@@ -410,7 +410,8 @@ PGF_embed(PGFObject* self, PyObject *modname)
Py_DECREF(m);
return NULL;
}
Py_INCREF(m);
return m;
}