Skip to content

Possible memory leak on error path in _sys_getwindowsversion_from_kernel32 #133597

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

Closed
sergey-miryanov opened this issue May 7, 2025 · 0 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error

Comments

@sergey-miryanov
Copy link
Contributor

sergey-miryanov commented May 7, 2025

Bug report

Bug description:

If GetFileVersionInfoW or VerQueryValueW fails inside _sys_getwindowsversion_from_kernel32 then allocated verblock not freed.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Linked PRs

@sergey-miryanov sergey-miryanov added the type-bug An unexpected behavior, bug, or error label May 7, 2025
@picnixz picnixz added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label May 7, 2025
miss-islington pushed a commit to miss-islington/cpython that referenced this issue May 8, 2025
…version_from_kernel32 (pythonGH-133598)

(cherry picked from commit 0ec8fc8)

Co-authored-by: Sergey Miryanov <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue May 8, 2025
…version_from_kernel32 (pythonGH-133598)

(cherry picked from commit 0ec8fc8)

Co-authored-by: Sergey Miryanov <[email protected]>
zooba pushed a commit that referenced this issue May 8, 2025
…n_from_kernel32 (GH-133598)

(cherry picked from commit 0ec8fc8)

Co-authored-by: Sergey Miryanov <[email protected]>
@zooba zooba closed this as completed May 8, 2025
zooba pushed a commit that referenced this issue May 8, 2025
…n_from_kernel32 (GH-133598)

(cherry picked from commit 0ec8fc8)

Co-authored-by: Sergey Miryanov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants