xbps-rindex/index-clean: fix a resouce leak (CID #98689).
This commit is contained in:
parent
28f01b3836
commit
5f56b130fc
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user