diff --git a/bin/xbps-rindex/index-clean.c b/bin/xbps-rindex/index-clean.c index 0f552564..454b43a8 100644 --- a/bin/xbps-rindex/index-clean.c +++ b/bin/xbps-rindex/index-clean.c @@ -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) {