Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
b25862f8
Commit
b25862f8
authored
Apr 15, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed leak introduced in last revision. :-(
parent
70c29e1a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
12 deletions
+21
-12
src/Persistence/cPickleCache.c
src/Persistence/cPickleCache.c
+7
-4
src/ZODB/cPickleCache.c
src/ZODB/cPickleCache.c
+7
-4
src/persistent/cPickleCache.c
src/persistent/cPickleCache.c
+7
-4
No files found.
src/Persistence/cPickleCache.c
View file @
b25862f8
/*
$Id: cPickleCache.c,v 1.
4 1997/04/11 19:13:21
jim Exp $
$Id: cPickleCache.c,v 1.
5 1997/04/15 19:03:29
jim Exp $
C implementation of a pickle jar cache.
...
...
@@ -56,7 +56,7 @@
(540) 371-6909
***************************************************************************/
static
char
*
what_string
=
"$Id: cPickleCache.c,v 1.
4 1997/04/11 19:13:21
jim Exp $"
;
static
char
*
what_string
=
"$Id: cPickleCache.c,v 1.
5 1997/04/15 19:03:29
jim Exp $"
;
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define UNLESS(E) if(!(E))
...
...
@@ -352,8 +352,8 @@ cc_ass_sub(ccobject *self, PyObject *key, PyObject *v)
PyErr_Clear
();
UNLESS
(
-
1
!=
PyDict_SetItem
(
self
->
data
,
key
,
t
))
return
-
1
;
return
maybegc
(
self
,
t
);
Py_DECREF
(
t
);
return
maybegc
(
self
,
t
);
}
else
{
...
...
@@ -436,7 +436,7 @@ void
initcPickleCache
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
4
$"
;
char
*
rev
=
"$Revision: 1.
5
$"
;
Cctype
.
ob_type
=&
PyType_Type
;
...
...
@@ -464,6 +464,9 @@ initcPickleCache()
/******************************************************************************
$Log: cPickleCache.c,v $
Revision 1.5 1997/04/15 19:03:29 jim
Fixed leak introduced in last revision. :-(
Revision 1.4 1997/04/11 19:13:21 jim
Added code to be more conservative about GCing.
Fixed setattr bugs.
...
...
src/ZODB/cPickleCache.c
View file @
b25862f8
/*
$Id: cPickleCache.c,v 1.
4 1997/04/11 19:13:21
jim Exp $
$Id: cPickleCache.c,v 1.
5 1997/04/15 19:03:29
jim Exp $
C implementation of a pickle jar cache.
...
...
@@ -56,7 +56,7 @@
(540) 371-6909
***************************************************************************/
static
char
*
what_string
=
"$Id: cPickleCache.c,v 1.
4 1997/04/11 19:13:21
jim Exp $"
;
static
char
*
what_string
=
"$Id: cPickleCache.c,v 1.
5 1997/04/15 19:03:29
jim Exp $"
;
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define UNLESS(E) if(!(E))
...
...
@@ -352,8 +352,8 @@ cc_ass_sub(ccobject *self, PyObject *key, PyObject *v)
PyErr_Clear
();
UNLESS
(
-
1
!=
PyDict_SetItem
(
self
->
data
,
key
,
t
))
return
-
1
;
return
maybegc
(
self
,
t
);
Py_DECREF
(
t
);
return
maybegc
(
self
,
t
);
}
else
{
...
...
@@ -436,7 +436,7 @@ void
initcPickleCache
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
4
$"
;
char
*
rev
=
"$Revision: 1.
5
$"
;
Cctype
.
ob_type
=&
PyType_Type
;
...
...
@@ -464,6 +464,9 @@ initcPickleCache()
/******************************************************************************
$Log: cPickleCache.c,v $
Revision 1.5 1997/04/15 19:03:29 jim
Fixed leak introduced in last revision. :-(
Revision 1.4 1997/04/11 19:13:21 jim
Added code to be more conservative about GCing.
Fixed setattr bugs.
...
...
src/persistent/cPickleCache.c
View file @
b25862f8
/*
$Id: cPickleCache.c,v 1.
4 1997/04/11 19:13:21
jim Exp $
$Id: cPickleCache.c,v 1.
5 1997/04/15 19:03:29
jim Exp $
C implementation of a pickle jar cache.
...
...
@@ -56,7 +56,7 @@
(540) 371-6909
***************************************************************************/
static
char
*
what_string
=
"$Id: cPickleCache.c,v 1.
4 1997/04/11 19:13:21
jim Exp $"
;
static
char
*
what_string
=
"$Id: cPickleCache.c,v 1.
5 1997/04/15 19:03:29
jim Exp $"
;
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define UNLESS(E) if(!(E))
...
...
@@ -352,8 +352,8 @@ cc_ass_sub(ccobject *self, PyObject *key, PyObject *v)
PyErr_Clear
();
UNLESS
(
-
1
!=
PyDict_SetItem
(
self
->
data
,
key
,
t
))
return
-
1
;
return
maybegc
(
self
,
t
);
Py_DECREF
(
t
);
return
maybegc
(
self
,
t
);
}
else
{
...
...
@@ -436,7 +436,7 @@ void
initcPickleCache
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
4
$"
;
char
*
rev
=
"$Revision: 1.
5
$"
;
Cctype
.
ob_type
=&
PyType_Type
;
...
...
@@ -464,6 +464,9 @@ initcPickleCache()
/******************************************************************************
$Log: cPickleCache.c,v $
Revision 1.5 1997/04/15 19:03:29 jim
Fixed leak introduced in last revision. :-(
Revision 1.4 1997/04/11 19:13:21 jim
Added code to be more conservative about GCing.
Fixed setattr bugs.
...
...
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