xbps-rindex/index-clean: fix a resouce leak (CID #98689).

This commit is contained in:
Juan RP 2015-07-26 08:17:17 +02:00
parent 28f01b3836
commit 5f56b130fc

View File

@ -114,6 +114,7 @@ index_clean(struct xbps_handle *xhp, const char *repodir)
fprintf(stderr, "%s: cannot read repository data: %s\n",
_XBPS_RINDEX, strerror(errno));
xbps_repo_unlock(rlockfd, rlockfname);
return rv;
}
if (repo->idx == NULL) {