cpython/Modules
Cody Maloney 5257a3d039
gh-162246: Fix leak when re-initializing BufferedRWPair (#162405)
Calling `BufferedRWPair.__init__()` on an already initialized object
overwrote the reader and writer pointers without releasing the previous
objects. Build the new reader and writer first, then swap them in,
releasing the old writer before the old reader as in
`bufferedrwpair_clear()`.

Make the Python implementation release the old writer before the old
reader too, so pending writes are not lost when both share a raw stream.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:18:07 -08:00
..
_ctypes
_decimal
_hacl
_io gh-162246: Fix leak when re-initializing BufferedRWPair (#162405) 2026-11-22 12:18:07 -08:00
_multiprocessing
_remote_debugging
_sqlite
_sre
_ssl
_testcapi
_testinternalcapi
_testlimitedcapi
_xxtestfuzz
_zstd
cjkcodecs
clinic
expat
_abc.c
_asynciomodule.c
_bisectmodule.c
_bz2module.c
_codecsmodule.c
_collectionsmodule.c
_csv.c
_curses_panel.c
_cursesmodule.c
_datetimemodule.c
_dbmmodule.c
_elementtree.c
_functoolsmodule.c
_gdbmmodule.c
_hashopenssl.c
_heapqmodule.c
_interpchannelsmodule.c
_interpqueuesmodule.c
_interpreters_common.h
_interpretersmodule.c
_json.c
_localemodule.c
_lsprof.c
_lzmamodule.c
_math.h
_opcode.c
_openssl_mem.h
_operator.c
_pickle.c
_posixsubprocess.c
_queuemodule.c
_randommodule.c
_scproxy.c
_ssl.c
_ssl.h
_ssl_data_36.h
_ssl_data_40.h
_ssl_data_111.h
_ssl_data_300.h
_ssl_data_340.h
_stat.c
_statisticsmodule.c
_struct.c
_suggestions.c
_sysconfig.c
_testbuffer.c
_testcapi_feature_macros.inc
_testcapimodule.c
_testclinic.c gh-150097: Move _testclinic to multi-phase init (#162406) 2026-11-22 17:07:10 +01:00
_testclinic_limited.c
_testimportmultiple.c
_testinternalcapi.c
_testlimitedcapi.c
_testmultiphase.c
_testsinglephase.c
_threadmodule.c
_tkinter.c
_tracemalloc.c
_typesmodule.c
_typingmodule.c
_uuidmodule.c
_weakref.c
_winapi.c
_zoneinfo.c
addrinfo.h
arraymodule.c
atexitmodule.c
binascii.c
blake2module.c
cmathmodule.c
config.c.in
errnomodule.c
faulthandler.c
fcntlmodule.c
gc_weakref.txt
gcmodule.c
getaddrinfo.c
getbuildinfo.c
getnameinfo.c
getpath.c
getpath.py
getpath_noop.c
grpmodule.c
hashlib.h
hmacmodule.c
itertoolsmodule.c
ld_so_aix.in
main.c
makesetup
makexp_aix
mathintegermodule.c
mathmodule.c
md5module.c
mmapmodule.c
overlapped.c
posixmodule.c
posixmodule.h
pwdmodule.c
pyexpat.c
readline.c
README
resource.c
rotatingtree.c
rotatingtree.h
selectmodule.c
Setup
Setup.bootstrap.in
Setup.stdlib.in
sha1module.c
sha2module.c
sha3module.c
signalmodule.c
socketmodule.c
socketmodule.h
symtablemodule.c
syslogmodule.c
termios.c
timemodule.c
tkappinit.c
tkinter.h
unicodedata.c
unicodedata_db.h
unicodename_db.h
winreparse.h
xxlimited.c
xxlimited_3_13.c
xxlimited_35.c
xxmodule.c
xxsubtype.c
zlibmodule.c

Source files for standard library extension modules,
and former extension modules that are now builtin modules.