Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
3fff5a17
Commit
3fff5a17
authored
Apr 01, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't decref cache in Per_dealloc().
The cache decrefed it in percachedel.
parent
15070957
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
9 deletions
+6
-9
trunk/src/Persistence/cPersistence.c
trunk/src/Persistence/cPersistence.c
+2
-3
trunk/src/ZODB/cPersistence.c
trunk/src/ZODB/cPersistence.c
+2
-3
trunk/src/persistent/cPersistence.c
trunk/src/persistent/cPersistence.c
+2
-3
No files found.
trunk/src/Persistence/cPersistence.c
View file @
3fff5a17
...
...
@@ -14,7 +14,7 @@
static
char
cPersistence_doc_string
[]
=
"Defines Persistent mixin class for persistent objects.
\n
"
"
\n
"
"$Id: cPersistence.c,v 1.6
5 2002/10/16 16:12:48
jeremy Exp $
\n
"
;
"$Id: cPersistence.c,v 1.6
6 2003/04/01 16:08:14
jeremy Exp $
\n
"
;
#include "cPersistence.h"
...
...
@@ -434,7 +434,6 @@ Per_dealloc(cPersistentObject *self)
if
(
idebug_log
<
0
)
call_debug
(
"del"
,
self
);
#endif
deallocated
(
self
);
Py_XDECREF
(
self
->
cache
);
Py_DECREF
(
self
->
ob_type
);
PyObject_DEL
(
self
);
}
...
...
@@ -724,7 +723,7 @@ Per_setattro(cPersistentObject *self, PyObject *oname, PyObject *v)
else
PyErr_SetObject
(
PyExc_AttributeError
,
oname
);
}
else
return
_setattro
(
self
,
oname
,
v
,
PyExtensionClassCAPI
->
setattro
);
return
_setattro
(
self
,
oname
,
v
,
PyExtensionClassCAPI
->
setattro
);
if
(
m
)
{
...
...
trunk/src/ZODB/cPersistence.c
View file @
3fff5a17
...
...
@@ -14,7 +14,7 @@
static
char
cPersistence_doc_string
[]
=
"Defines Persistent mixin class for persistent objects.
\n
"
"
\n
"
"$Id: cPersistence.c,v 1.6
5 2002/10/16 16:12:48
jeremy Exp $
\n
"
;
"$Id: cPersistence.c,v 1.6
6 2003/04/01 16:08:14
jeremy Exp $
\n
"
;
#include "cPersistence.h"
...
...
@@ -434,7 +434,6 @@ Per_dealloc(cPersistentObject *self)
if
(
idebug_log
<
0
)
call_debug
(
"del"
,
self
);
#endif
deallocated
(
self
);
Py_XDECREF
(
self
->
cache
);
Py_DECREF
(
self
->
ob_type
);
PyObject_DEL
(
self
);
}
...
...
@@ -724,7 +723,7 @@ Per_setattro(cPersistentObject *self, PyObject *oname, PyObject *v)
else
PyErr_SetObject
(
PyExc_AttributeError
,
oname
);
}
else
return
_setattro
(
self
,
oname
,
v
,
PyExtensionClassCAPI
->
setattro
);
return
_setattro
(
self
,
oname
,
v
,
PyExtensionClassCAPI
->
setattro
);
if
(
m
)
{
...
...
trunk/src/persistent/cPersistence.c
View file @
3fff5a17
...
...
@@ -14,7 +14,7 @@
static
char
cPersistence_doc_string
[]
=
"Defines Persistent mixin class for persistent objects.
\n
"
"
\n
"
"$Id: cPersistence.c,v 1.6
5 2002/10/16 16:12:48
jeremy Exp $
\n
"
;
"$Id: cPersistence.c,v 1.6
6 2003/04/01 16:08:14
jeremy Exp $
\n
"
;
#include "cPersistence.h"
...
...
@@ -434,7 +434,6 @@ Per_dealloc(cPersistentObject *self)
if
(
idebug_log
<
0
)
call_debug
(
"del"
,
self
);
#endif
deallocated
(
self
);
Py_XDECREF
(
self
->
cache
);
Py_DECREF
(
self
->
ob_type
);
PyObject_DEL
(
self
);
}
...
...
@@ -724,7 +723,7 @@ Per_setattro(cPersistentObject *self, PyObject *oname, PyObject *v)
else
PyErr_SetObject
(
PyExc_AttributeError
,
oname
);
}
else
return
_setattro
(
self
,
oname
,
v
,
PyExtensionClassCAPI
->
setattro
);
return
_setattro
(
self
,
oname
,
v
,
PyExtensionClassCAPI
->
setattro
);
if
(
m
)
{
...
...
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