projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f82119
)
Free all keys not only those on the first buckets
author
Florian Festi
<ffesti@redhat.com>
Sat, 14 Mar 2009 18:12:43 +0000
(19:12 +0100)
committer
Florian Festi
<ffesti@redhat.com>
Sat, 14 Mar 2009 18:12:43 +0000
(19:12 +0100)
- Thanks to Alexey Tourbin for pointing that out!
lib/rpmhash.C
patch
|
blob
|
history
diff --git
a/lib/rpmhash.C
b/lib/rpmhash.C
index
1c11889
..
3ef1c69
100644
(file)
--- a/
lib/rpmhash.C
+++ b/
lib/rpmhash.C
@@
-129,11
+129,11
@@
HASHTYPE HASHPREFIX(Free)(HASHTYPE ht)
if (b == NULL)
continue;
ht->buckets[i] = NULL;
- if (ht->freeKey)
- b->key = ht->freeKey(b->key);
do {
n = b->next;
+ if (ht->freeKey)
+ b->key = ht->freeKey(b->key);
#ifdef HTDATATYPE
if (ht->freeData) {
int j;