コード例 #1
0
ファイル: initend.c プロジェクト: bougyman/xbps
void
xbps_end(struct xbps_handle *xhp)
{
	assert(xhp);

	xbps_pkgdb_release(xhp);
}
コード例 #2
0
ファイル: initend.c プロジェクト: indianpoptart/xbps
void
xbps_end(struct xbps_handle *xhp)
{
	assert(xhp);

	xbps_pkgdb_release(xhp);
	xbps_fetch_unset_cache_connection();
}
コード例 #3
0
ファイル: initend.c プロジェクト: xdave/xbps
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;
}