mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-01-23 15:33:33 +08:00
fix: potential memory leak in pypy (#3774)
This commit is contained in:
parent
42a8e31253
commit
af08a95b56
@ -2694,9 +2694,9 @@ get_type_override(const void *this_ptr, const type_info *this_type, const char *
|
||||
d.ptr());
|
||||
if (result == nullptr)
|
||||
throw error_already_set();
|
||||
Py_DECREF(result);
|
||||
if (d["self"].is_none())
|
||||
return function();
|
||||
Py_DECREF(result);
|
||||
#endif
|
||||
|
||||
return override;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user