bin/xbps-rindex/index-add.c: resource leak (CID 62685)
This commit is contained in:
parent
0af6db77e6
commit
ced1ce4b40
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user