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
2a1b35cc
Commit
2a1b35cc
authored
Oct 01, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in setstate that allocates too much memory.
parent
9aa1a3c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/ZODB/BTree.c
src/ZODB/BTree.c
+8
-5
No files found.
src/ZODB/BTree.c
View file @
2a1b35cc
...
...
@@ -11,7 +11,7 @@
static
char
BTree_module_documentation
[]
=
""
"
\n
$Id: BTree.c,v 1.
4 1997/09/17 17:20:32
jim Exp $"
"
\n
$Id: BTree.c,v 1.
5 1997/10/01 02:47:06
jim Exp $"
;
#define PERSISTENT
...
...
@@ -1292,16 +1292,16 @@ bucket_setstate(Bucket *self, PyObject *args)
goto
err
;
}
if
(
l
>
self
->
size
)
if
(
l
>
self
->
size
)
if
(
self
->
data
)
{
UNLESS
(
d
=
PyRealloc
(
self
->
data
,
sizeof
(
BTree
Item
)
*
l
))
goto
err
;
UNLESS
(
d
=
PyRealloc
(
self
->
data
,
sizeof
(
Item
)
*
l
))
goto
err
;
self
->
data
=
d
;
self
->
size
=
l
;
}
else
{
UNLESS
(
d
=
PyMalloc
(
sizeof
(
BTree
Item
)
*
l
))
goto
err
;
UNLESS
(
d
=
PyMalloc
(
sizeof
(
Item
)
*
l
))
goto
err
;
self
->
data
=
d
;
self
->
size
=
l
;
}
...
...
@@ -1713,7 +1713,7 @@ initBTree()
#endif
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.
4
$"
;
char
*
rev
=
"$Revision: 1.
5
$"
;
UNLESS
(
PyExtensionClassCAPI
=
PyCObject_Import
(
"ExtensionClass"
,
"CAPI"
))
return
;
...
...
@@ -1773,6 +1773,9 @@ initBTree()
Revision Log:
$Log: BTree.c,v $
Revision 1.5 1997/10/01 02:47:06 jim
Fixed bug in setstate that allocates too much memory.
Revision 1.4 1997/09/17 17:20:32 jim
Fixed bug in deleting members from BTree.
...
...
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