Merge pull request #174 from ebfe/stage-leak

lib/repo: plug stage repo mem leak
This commit is contained in:
Enno Boland 2016-06-04 07:48:39 +02:00
commit 0b96156b5e

View File

@ -330,6 +330,7 @@ xbps_repo_open(struct xbps_handle *xhp, const char *url)
}
xbps_object_iterator_release(iter);
xbps_object_release(repo->idx);
xbps_repo_close(stage);
repo->idx = idx;
return repo;
}