projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b43b6d6
)
Revert rpmhash changes from previous commit
author
Panu Matilainen
<pmatilai@redhat.com>
Mon, 24 Mar 2008 20:23:01 +0000
(22:23 +0200)
committer
Panu Matilainen
<pmatilai@redhat.com>
Mon, 24 Mar 2008 20:23:01 +0000
(22:23 +0200)
- rpmhash key + data actually sometimes point to const data.. pff
rpmdb/rpmhash.c
patch
|
blob
|
history
diff --git
a/rpmdb/rpmhash.c
b/rpmdb/rpmhash.c
index
f9c3c88
..
c7f7fc5
100644
(file)
--- a/
rpmdb/rpmhash.c
+++ b/
rpmdb/rpmhash.c
@@
-133,12
+133,12
@@
hashTable htFree(hashTable ht)
continue;
ht->buckets[i] = NULL;
if (ht->keySize > 0)
- b->key = _free(b->key);
+ b->key = _
const
free(b->key);
do {
n = b->next;
if (b->data) {
if (ht->freeData)
- *b->data = _free(*b->data);
+ *b->data = _
const
free(*b->data);
b->data = _free(b->data);
}
b = _free(b);