struct fprintCache_s {
rpmFpEntryHash ht; /*!< hashed by dirName */
rpmFpHash fp; /*!< hashed by fingerprint */
+ rpmstrPool pool; /*!< string pool */
};
fingerPrintCache fpCacheCreate(int sizeHint)
fpc->ht = rpmFpEntryHashCreate(sizeHint, rstrhash, strcmp,
(rpmFpEntryHashFreeKey)free,
(rpmFpEntryHashFreeData)free);
+ fpc->pool = rpmstrPoolCreate();
return fpc;
}
if (cache) {
cache->ht = rpmFpEntryHashFree(cache->ht);
cache->fp = rpmFpHashFree(cache->fp);
+ cache->pool = rpmstrPoolFree(cache->pool);
free(cache);
}
return NULL;