repo_freeallrepos(pool, 1);
sat_free(pool->id2arch);
sat_free(pool->solvables);
- sat_free(pool->ss.stringspace);
- sat_free(pool->ss.strings);
+ stringpool_free(&pool->ss);
sat_free(pool->rels);
queue_free(&pool->vendormap);
for (i = 0; i < POOL_TMPSPACEBUF; i++)
}
void
+stringpool_free(Stringpool *ss)
+{
+ sat_free(ss->strings);
+ sat_free(ss->stringspace);
+ sat_free(ss->stringhashtbl);
+}
+
+void
stringpool_init_empty(Stringpool *ss)
{
const char *emptystrs[] = {
void stringpool_init(Stringpool *ss, const char *strs[]);
void stringpool_init_empty(Stringpool *ss);
void stringpool_clone(Stringpool *ss, Stringpool *from);
+void stringpool_free(Stringpool *ss);
Id stringpool_str2id (Stringpool *ss, const char *str, int create);
Id stringpool_strn2id (Stringpool *ss, const char *str, unsigned int len, int create);