From: Panu Matilainen Date: Tue, 18 Dec 2007 07:19:22 +0000 (+0200) Subject: Use constfree for rpmhash key + data for now X-Git-Tag: rpm-4.6.0-rc1~1222 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e4c1bb5ac21983de746f5446b3ed564a210d55d4;p=platform%2Fupstream%2Frpm.git Use constfree for rpmhash key + data for now - sometimes they point to real const data, sometimes not, eww --- diff --git a/rpmdb/rpmhash.c b/rpmdb/rpmhash.c index 5ea0ca7..9357f94 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);