diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-12-18 09:19:22 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-12-18 09:19:22 +0200 |
commit | e4c1bb5ac21983de746f5446b3ed564a210d55d4 (patch) | |
tree | 257533767449c50905f6abcb59f07552506caad6 /rpmdb | |
parent | bf723ddc66d4eeef1e3d3d6d62381ef597df7d78 (diff) | |
download | librpm-tizen-e4c1bb5ac21983de746f5446b3ed564a210d55d4.tar.gz librpm-tizen-e4c1bb5ac21983de746f5446b3ed564a210d55d4.tar.bz2 librpm-tizen-e4c1bb5ac21983de746f5446b3ed564a210d55d4.zip |
Use constfree for rpmhash key + data for now
- sometimes they point to real const data, sometimes not, eww
Diffstat (limited to 'rpmdb')
-rw-r--r-- | rpmdb/rpmhash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmdb/rpmhash.c b/rpmdb/rpmhash.c index 5ea0ca756..9357f9451 100644 --- a/rpmdb/rpmhash.c +++ b/rpmdb/rpmhash.c @@ -134,12 +134,12 @@ hashTable htFree(hashTable ht) continue; ht->buckets[i] = NULL; if (ht->keySize > 0) - b->key = _free(b->key); + b->key = _constfree(b->key); do { n = b->next; if (b->data) { if (ht->freeData) - *b->data = _free(*b->data); + *b->data = _constfree(*b->data); b->data = _free(b->data); } b = _free(b); |