lib/repo: plug stage repo mem leak

This commit is contained in:
Michael Gehring 2016-05-04 09:46:04 +02:00
parent 5117ff84a2
commit 2d6e865d00

View File

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