bin/xbps-rindex/index-add.c: resource leak (CID 62685)

This commit is contained in:
Juan RP 2014-10-05 08:06:12 +02:00
parent 0af6db77e6
commit ced1ce4b40

View File

@ -94,6 +94,7 @@ index_add(struct xbps_handle *xhp, int argc, char **argv, bool force)
if (!xbps_pkg_arch_match(xhp, arch, NULL)) { if (!xbps_pkg_arch_match(xhp, arch, NULL)) {
fprintf(stderr, "index: ignoring %s, unmatched arch (%s)\n", pkgver, arch); fprintf(stderr, "index: ignoring %s, unmatched arch (%s)\n", pkgver, arch);
xbps_object_release(binpkgd); xbps_object_release(binpkgd);
free(pkgver);
continue; continue;
} }
pkgname = xbps_pkg_name(pkgver); pkgname = xbps_pkg_name(pkgver);