Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
persistent
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
persistent
Commits
4d2dcc93
Commit
4d2dcc93
authored
Aug 07, 2017
by
KIMURA Chikahiro
Committed by
Jason Madden
Sep 15, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix possibility of rare crash during dealloc. Fixes #66
parent
740e1d42
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
CHANGES.rst
CHANGES.rst
+2
-1
persistent/cPersistence.c
persistent/cPersistence.c
+1
-0
persistent/cPickleCache.c
persistent/cPickleCache.c
+6
-5
No files found.
CHANGES.rst
View file @
4d2dcc93
...
...
@@ -4,7 +4,8 @@
4.2.5 (unreleased)
------------------
- Nothing changed yet.
- Fix the possibility of a rare crash in the C extension when
deallocating items. See https://github.com/zopefoundation/persistent/issues/66
4.2.4.2 (2017-04-23)
...
...
persistent/cPersistence.c
View file @
4d2dcc93
...
...
@@ -783,6 +783,7 @@ Per__getstate__(cPersistentObject *self)
static
void
Per_dealloc
(
cPersistentObject
*
self
)
{
PyObject_GC_UnTrack
((
PyObject
*
)
self
);
if
(
self
->
state
>=
0
)
{
/* If the cache has been cleared, then a non-ghost object
...
...
persistent/cPickleCache.c
View file @
4d2dcc93
...
...
@@ -891,6 +891,7 @@ cc_init(ccobject *self, PyObject *args, PyObject *kwds)
static
void
cc_dealloc
(
ccobject
*
self
)
{
PyObject_GC_UnTrack
((
PyObject
*
)
self
);
Py_XDECREF
(
self
->
data
);
Py_XDECREF
(
self
->
jar
);
PyObject_GC_Del
(
self
);
...
...
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