Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Zope
Commits
15f09953
Commit
15f09953
authored
Jul 18, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added cPersistent, PER_DEL invocation to destructor.
Fixed memory leaks in cset.
parent
d7821381
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
lib/python/SearchIndex/Trie.c
lib/python/SearchIndex/Trie.c
+13
-3
No files found.
lib/python/SearchIndex/Trie.c
View file @
15f09953
...
...
@@ -53,7 +53,7 @@
static
char
Trie_module_documentation
[]
=
""
"
\n
$Id: Trie.c,v 1.1
1 1997/07/17 14:50:57
jim Exp $"
"
\n
$Id: Trie.c,v 1.1
2 1997/07/18 14:43:24
jim Exp $"
;
...
...
@@ -452,9 +452,14 @@ Trie_cget(TrieObject *self, char *word, PyObject *oword)
PER_USE_OR_RETURN
(
self
,
NULL
);
}
if
(
!
self
->
value
)
return
PER_RETURN
(
self
,
NotFoundError
(
oword
));
if
(
!
self
->
value
)
{
Py_DECREF
(
self
);
return
PER_RETURN
(
self
,
NotFoundError
(
oword
));
}
bin
=
self
->
value
;
Py_INCREF
(
bin
);
Py_DECREF
(
self
);
return
PER_RETURN
(
self
,
bin
);
not_found:
...
...
@@ -653,6 +658,7 @@ Trie_dealloc(TrieObject *self)
{
Py_XDECREF
(
self
->
bins
);
Py_XDECREF
(
self
->
value
);
PER_DEL
(
self
);
PyMem_DEL
(
self
);
/*printf("d");*/
}
...
...
@@ -741,7 +747,7 @@ void
initTrie
()
{
PyObject
*
m
,
*
d
;
char
*
rev
=
"$Revision: 1.1
1
$"
;
char
*
rev
=
"$Revision: 1.1
2
$"
;
UNLESS
(
ExtensionClassImported
)
return
;
...
...
@@ -781,6 +787,10 @@ initTrie()
Revision Log:
$Log: Trie.c,v $
Revision 1.12 1997/07/18 14:43:24 jim
Added cPersistent, PER_DEL invocation to destructor.
Fixed memory leaks in cset.
Revision 1.11 1997/07/17 14:50:57 jim
Got rid of some unreferenced vars.
...
...
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