Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into bpo-23224-lzma-bz2-segfault
  • Loading branch information
ZackerySpytz authored Jun 23, 2018
commit 1b4c17e9d0a4f00f45dbba23796f7f9c3440e178
4 changes: 0 additions & 4 deletions Modules/_bz2module.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,10 +656,6 @@ _bz2_BZ2Decompressor_impl(PyTypeObject *type)
PyErr_SetString(PyExc_MemoryError, "Unable to allocate lock");
return NULL;
}
if (self->lock != NULL) {
PyThread_free_lock(self->lock);
}
self->lock = lock;

self->needs_input = 1;
self->bzs_avail_in_real = 0;
Expand Down
4 changes: 0 additions & 4 deletions Modules/_lzmamodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1192,10 +1192,6 @@ _lzma_LZMADecompressor_impl(PyTypeObject *type, int format,
PyErr_SetString(PyExc_MemoryError, "Unable to allocate lock");
return NULL;
}
if (self->lock != NULL) {
PyThread_free_lock(self->lock);
}
self->lock = lock;

self->check = LZMA_CHECK_UNKNOWN;
self->needs_input = 1;
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.