8000 gh-99240: Fix double-free bug in Argument Clinic str_converter generated code by colorfulappl · Pull Request #99241 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-99240: Fix double-free bug in Argument Clinic str_converter generated code #99241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Nov 24, 2022
Merged
Prev Previous commit
Next Next commit
Use walrus operator
  • Loading branch information
colorfulappl committed Nov 9, 2022
commit cf16400d551ff0405d8c0d50d3a219bbdd037354
3 changes: 1 addition & 2 deletions 3 Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2735,8 +2735,7 @@ def _render_non_self(self, parameter, data):
self.parse_argument(data.parse_arguments)

# post_operations
post_operations = self.post_operations()
if post_operations:
if post_operations := self.post_operations():
data.post_operations.append('/* Post operation for ' + name + ' */\n' + post_operations.rstrip() + "\n")

# cleanup
Expand Down
0