- unreferencing should always go through fooFree() which does
the real refcounting and frees when references go out
/* XXX rpmswExit() */
iter->ts = rpmtsFree(iter->ts);
iter->te = NULL; /* XXX rpmte is not refcounted yet */
- iter->fi = rpmfiUnlink(iter->fi);
+ iter->fi = rpmfiFree(iter->fi);
}
return _free(p);
}
mi->mi_set = dbiFreeIndexSet(mi->mi_set);
mi->mi_keyp = _free(mi->mi_keyp);
+ /* XXX rpmdbUnlink() should be rpmdbFree() but no such call exists... */
mi->mi_db = rpmdbUnlink(mi->mi_db);
mi->mi_ts = rpmtsFree(mi->mi_ts);
rpmfsFree(te->fs);
rpmpsFree(te->probs);
rpmteCleanDS(te);
- rpmtsUnlink(te->ts);
+ rpmtsFree(te->ts);
argvFree(te->collections);
argvFree(te->lastInCollectionsAny);
ptr = ts->notify(h, what, amount, total, cbkey, ts->notifyData);
if (h) {
- headerUnlink(h); /* undo rpmteHeader() ref */
+ headerFree(h); /* undo rpmteHeader() ref */
}
}
return ptr;