depends: fix a leak while destroying the simple queue.
--HG-- extra : convert_revision : aabc102f55fd81bce8b007d209596d40576eb8a5
This commit is contained in:
parent
68941a9a31
commit
456c6a2763
|
@ -94,10 +94,12 @@ xbps_clean_pkg_depslist(void)
|
|||
{
|
||||
struct pkg_dependency *dep;
|
||||
|
||||
SIMPLEQ_FOREACH(dep, &pkg_deps_queue, deps) {
|
||||
SIMPLEQ_REMOVE(&pkg_deps_queue, dep, pkg_dependency, deps);
|
||||
while (!SIMPLEQ_EMPTY(&pkg_deps_queue)) {
|
||||
dep = SIMPLEQ_FIRST(&pkg_deps_queue);
|
||||
SIMPLEQ_REMOVE_HEAD(&pkg_deps_queue, deps);
|
||||
free(dep->name);
|
||||
prop_object_release(dep->repo);
|
||||
free(dep);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user