]> granicus.if.org Git - python/commit
bpo-33916: Fix bz2 and lzma init when called twice (GH-7843) (GH-7872)
authorVictor Stinner <vstinner@redhat.com>
Sat, 23 Jun 2018 13:06:11 +0000 (15:06 +0200)
committerGitHub <noreply@github.com>
Sat, 23 Jun 2018 13:06:11 +0000 (15:06 +0200)
commit1094891b2e3eafef464819acd4cd04cfd2b59661
treec0500dda4a5317d5276c958c12e336a026b0fcaa
parent688325ed1a4d549f03d886507c265093aa3b2cab
bpo-33916: Fix bz2 and lzma init when called twice (GH-7843) (GH-7872)

bz2, lzma: When Decompressor.__init__() is called twice, free the old
lock to not leak memory.

(cherry picked from commit 9b7cf757213cf4d7ae1d436d86ad53f5ba362d55)
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