mirror of
https://github.com/panda3d/panda3d.git
synced 2026-02-20 06:10:03 -06:00
loader: fix leak of EntryPoint.name reference
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user