-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Potential memory leak in Objects/bytesobject.c #101056
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
Labels
type-bug
An unexpected behavior, bug, or error
Comments
Good catch! @RuiliF thanks a lot! How do you detect it? Do you use some kind of tooling? Or just by hand? :) |
Thank you for the quick response! I found it just by hand. :) |
If you have others to report - you are more than welcome! 👍 |
kumaraditya303
pushed a commit
that referenced
this issue
Jan 16, 2023
This was referenced Jan 16, 2023
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jan 16, 2023
pythonGH-101057) (cherry picked from commit b1a74a1) Co-authored-by: Nikita Sobolev <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jan 16, 2023
pythonGH-101057) (cherry picked from commit b1a74a1) Co-authored-by: Nikita Sobolev <[email protected]>
miss-islington
added a commit
that referenced
this issue
Jan 16, 2023
…101057) (cherry picked from commit b1a74a1) Co-authored-by: Nikita Sobolev <[email protected]>
miss-islington
added a commit
that referenced
this issue
Jan 16, 2023
…101057) (cherry picked from commit b1a74a1) Co-authored-by: Nikita Sobolev <[email protected]>
Done! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
cpython/Objects/bytesobject.c
Lines 429 to 443 in 206f05a
At line 438, object
p
won't be freed if_PyBytesWriter_Prepare
fails (returns NULL) and thus become a memory leak.Linked PRs
formatfloat()
inbytesobject.c
#101057formatfloat()
inbytesobject.c
(GH-101057) #101076formatfloat()
inbytesobject.c
(GH-101057) #101077The text was updated successfully, but these errors were encountered: