void xbps_end(struct xbps_handle *xhp) { assert(xhp); xbps_pkgdb_release(xhp); }
void xbps_end(struct xbps_handle *xhp) { assert(xhp); xbps_pkgdb_release(xhp); xbps_fetch_unset_cache_connection(); }
void xbps_end(struct xbps_handle *xhp) { assert(xhp); if (!xhp->initialized) return; xbps_pkgdb_release(xhp); xbps_rpool_release(xhp); xbps_fetch_unset_cache_connection(); cfg_free(xhp->cfg); free(xhp->cachedir_priv); free(xhp->metadir_priv); free(xhp->un_machine); xhp->initialized = false; xhp = NULL; }