diff --git a/bin/xbps-repo/repository.c b/bin/xbps-repo/repository.c index 5fa7662d..299811cb 100644 --- a/bin/xbps-repo/repository.c +++ b/bin/xbps-repo/repository.c @@ -228,6 +228,8 @@ register_repository(const char *uri) idxstr, rpi->pkgidxver, rpi->totalpkgs); out: + if (rpi->pkgidxver != NULL) + free(rpi->pkgidxver); if (rpi != NULL) free(rpi); if (plist != NULL)