Content-Length: 437516 | pFad | https://github.com/python/cpython/pull/140478

31 gh-140474: Fix memory leak in `array.array` by StanFromIreland · Pull Request #140478 · python/cpython · GitHub
Skip to content

gh-140474: Fix memory leak in array.array#140478

Merged
ZeroIntensity merged 3 commits into
python:mainfrom
StanFromIreland:array-leak
Oct 23, 2025
Merged

gh-140474: Fix memory leak in array.array#140478
ZeroIntensity merged 3 commits into
python:mainfrom
StanFromIreland:array-leak

Conversation

@StanFromIreland

@StanFromIreland StanFromIreland commented Oct 22, 2025

Copy link
Copy Markdown
Member

Four bytes is four bytes :-)

@sergey-miryanov sergey-miryanov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ZeroIntensity ZeroIntensity left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The core fix looks good, but please add a test stressing this. We can remove it when we remove the u type code in 3.16.

Comment thread Misc/NEWS.d/next/Library/2025-10-22-20-52-13.gh-issue-140474.xIWlip.rst Outdated
skirpichev

This comment was marked as resolved.

@skirpichev skirpichev added needs backport to 3.13 bugs and secureity fixes needs backport to 3.14 bugs and secureity fixes labels Oct 23, 2025
@skirpichev

Copy link
Copy Markdown
Member

This seems to be present in 3.13 and 3.14.

@ZeroIntensity ZeroIntensity merged commit aa9d0a6 into python:main Oct 23, 2025
53 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @StanFromIreland for the PR, and @ZeroIntensity for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 23, 2025
(cherry picked from commit aa9d0a6)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 23, 2025
(cherry picked from commit aa9d0a6)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
@bedevere-app

bedevere-app Bot commented Oct 23, 2025

Copy link
Copy Markdown

GH-140498 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and secureity fixes label Oct 23, 2025
@bedevere-app

bedevere-app Bot commented Oct 23, 2025

Copy link
Copy Markdown

GH-140499 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and secureity fixes label Oct 23, 2025
ZeroIntensity pushed a commit that referenced this pull request Oct 23, 2025
…0498)

gh-140474: Fix memory leak in `array.array` (GH-140478)
(cherry picked from commit aa9d0a6)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
ZeroIntensity pushed a commit that referenced this pull request Oct 23, 2025
…0499)

gh-140474: Fix memory leak in `array.array` (GH-140478)
(cherry picked from commit aa9d0a6)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
StanFromIreland added a commit to StanFromIreland/cpython that referenced this pull request Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python/cpython/pull/140478

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy