Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BTrees
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
BTrees
Commits
ddb955d2
Commit
ddb955d2
authored
Sep 15, 2017
by
Jason Madden
Committed by
GitHub
Sep 15, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #76 from zopefoundation/issue75
Fix possibility of rare crash during dealloc. Fixes #75
parents
9e6e9102
16e70dd3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
BTrees/BTreeTemplate.c
BTrees/BTreeTemplate.c
+3
-1
BTrees/BucketTemplate.c
BTrees/BucketTemplate.c
+3
-1
CHANGES.rst
CHANGES.rst
+3
-0
No files found.
BTrees/BTreeTemplate.c
View file @
ddb955d2
...
...
@@ -2277,8 +2277,10 @@ BTree_init(PyObject *self, PyObject *args, PyObject *kwds)
static
void
BTree_dealloc
(
BTree
*
self
)
{
if
(
self
->
state
!=
cPersistent_GHOST_STATE
)
PyObject_GC_UnTrack
((
PyObject
*
)
self
);
if
(
self
->
state
!=
cPersistent_GHOST_STATE
)
{
_BTree_clear
(
self
);
}
cPersistenceCAPI
->
pertype
->
tp_dealloc
((
PyObject
*
)
self
);
}
...
...
BTrees/BucketTemplate.c
View file @
ddb955d2
...
...
@@ -1708,8 +1708,10 @@ Bucket_init(PyObject *self, PyObject *args, PyObject *kwds)
static
void
bucket_dealloc
(
Bucket
*
self
)
{
if
(
self
->
state
!=
cPersistent_GHOST_STATE
)
PyObject_GC_UnTrack
((
PyObject
*
)
self
);
if
(
self
->
state
!=
cPersistent_GHOST_STATE
)
{
_bucket_clear
(
self
);
}
cPersistenceCAPI
->
pertype
->
tp_dealloc
((
PyObject
*
)
self
);
}
...
...
CHANGES.rst
View file @
ddb955d2
...
...
@@ -9,6 +9,9 @@
BTrees is used but the ``persistent`` C extension is not available.
Previously this could result in an odd ``AttributeError``. See
https://github.com/zopefoundation/BTrees/pull/55
- Fix the possibility of a rare crash in the C extension when
deallocating items. See https://github.com/zopefoundation/BTrees/issues/75
4.4.1 (2017-01-24)
------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment