mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
loader: fix leak of EntryPoint.name reference
This commit is contained in:
parent
aea5ee8c7a
commit
5449f963a5
@ -53,6 +53,7 @@ register_deferred_type(PyObject *entry_point) {
|
||||
name_str = nullptr;
|
||||
}
|
||||
#endif
|
||||
Py_DECREF(name);
|
||||
|
||||
if (name_str == nullptr) {
|
||||
Dtool_Raise_TypeError("entry_point.name is expected to be str");
|
||||
|
Loading…
x
Reference in New Issue
Block a user