]> granicus.if.org Git - python/commit
bpo-33916: Fix bz2 and lzma init when called twice (GH-7843)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 23 Jun 2018 08:53:03 +0000 (01:53 -0700)
committerGitHub <noreply@github.com>
Sat, 23 Jun 2018 08:53:03 +0000 (01:53 -0700)
commitefc6bf66a58e96c12116d65984ac69b0f36f85de
treedf31dfa7e17694f4bdeab5847e11b5c8ebf89e7e
parentf47d8983fe35239cccf4e623e4ad70c9e0f636f9
bpo-33916: Fix bz2 and lzma init when called twice (GH-7843)

bz2, lzma: When Decompressor.__init__() is called twice, free the old
lock to not leak memory.
(cherry picked from commit 9b7cf757213cf4d7ae1d436d86ad53f5ba362d55)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Misc/NEWS.d/next/Library/2018-06-21-11-35-47.bpo-33916.cZgPCD.rst [new file with mode: 0644]
Modules/_bz2module.c
Modules/_lzmamodule.c