From ced1ce4b40b148ec94f073bab9fa961eb656d0b1 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 5 Oct 2014 08:06:12 +0200 Subject: [PATCH] bin/xbps-rindex/index-add.c: resource leak (CID 62685) --- bin/xbps-rindex/index-add.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/xbps-rindex/index-add.c b/bin/xbps-rindex/index-add.c index 41271e5a..baf78b3a 100644 --- a/bin/xbps-rindex/index-add.c +++ b/bin/xbps-rindex/index-add.c @@ -94,6 +94,7 @@ index_add(struct xbps_handle *xhp, int argc, char **argv, bool force) if (!xbps_pkg_arch_match(xhp, arch, NULL)) { fprintf(stderr, "index: ignoring %s, unmatched arch (%s)\n", pkgver, arch); xbps_object_release(binpkgd); + free(pkgver); continue; } pkgname = xbps_pkg_name(pkgver);