xbps_rpool_release: fix a double free (CID #98695).
This commit is contained in:
parent
090464e4b2
commit
7edabe907f
@ -127,7 +127,6 @@ xbps_rpool_release(struct xbps_handle *xhp _unused)
|
|||||||
while ((repo = SIMPLEQ_FIRST(&rpool_queue))) {
|
while ((repo = SIMPLEQ_FIRST(&rpool_queue))) {
|
||||||
SIMPLEQ_REMOVE(&rpool_queue, repo, xbps_repo, entries);
|
SIMPLEQ_REMOVE(&rpool_queue, repo, xbps_repo, entries);
|
||||||
xbps_repo_close(repo);
|
xbps_repo_close(repo);
|
||||||
free(repo);
|
|
||||||
}
|
}
|
||||||
if (xhp->repositories)
|
if (xhp->repositories)
|
||||||
xbps_object_release(xhp->repositories);
|
xbps_object_release(xhp->repositories);
|
||||||
|
Loading…
Reference in New Issue
Block a user