xbps_rpool_release: fix a double free (CID #98695).

This commit is contained in:
Juan RP 2015-07-26 08:03:16 +02:00
parent 090464e4b2
commit 7edabe907f

View File

@ -127,7 +127,6 @@ xbps_rpool_release(struct xbps_handle *xhp _unused)
while ((repo = SIMPLEQ_FIRST(&rpool_queue))) {
SIMPLEQ_REMOVE(&rpool_queue, repo, xbps_repo, entries);
xbps_repo_close(repo);
free(repo);
}
if (xhp->repositories)
xbps_object_release(xhp->repositories);