Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
af08a95b
Unverified
Commit
af08a95b
authored
Mar 02, 2022
by
Aaron Gokaslan
Committed by
GitHub
Mar 02, 2022
Browse files
fix: potential memory leak in pypy (#3774)
parent
42a8e312
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/pybind11/pybind11.h
include/pybind11/pybind11.h
+1
-1
No files found.
include/pybind11/pybind11.h
View file @
af08a95b
...
@@ -2694,9 +2694,9 @@ get_type_override(const void *this_ptr, const type_info *this_type, const char *
...
@@ -2694,9 +2694,9 @@ get_type_override(const void *this_ptr, const type_info *this_type, const char *
d
.
ptr
());
d
.
ptr
());
if
(
result
==
nullptr
)
if
(
result
==
nullptr
)
throw
error_already_set
();
throw
error_already_set
();
Py_DECREF
(
result
);
if
(
d
[
"self"
].
is_none
())
if
(
d
[
"self"
].
is_none
())
return
function
();
return
function
();
Py_DECREF
(
result
);
#endif
#endif
return
override
;
return
override
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment