Revert rpmhash changes from previous commit
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 24 Mar 2008 20:23:01 +0000 (22:23 +0200)
committerPanu 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

index f9c3c88..c7f7fc5 100644 (file)
@@ -133,12 +133,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);