"git@developer.sourcefind.cn:gaoqiong/pybind11.git" did not exist on "42ad3284815b06cc74fa9d19d767a73d86e73546"
Commit 45219c6b authored by Aaron Gokaslan's avatar Aaron Gokaslan Committed by Henry Schreiner
Browse files

fix: potential memory leak in pypy (#3774)

parent 6f01c60a
......@@ -2729,9 +2729,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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment