bin/xbps-remove/clean-cache.c: resource leak (CID 62680)

This commit is contained in:
Juan RP 2014-10-05 08:00:31 +02:00
parent 596a37defa
commit 0af6db77e6

View File

@ -54,6 +54,8 @@ cleaner_cb(struct xbps_handle *xhp, xbps_object_t obj,
if (!xbps_pkg_arch_match(xhp, arch, NULL)) { if (!xbps_pkg_arch_match(xhp, arch, NULL)) {
xbps_dbg_printf(xhp, "%s: ignoring pkg with unmatched arch (%s)\n", pkgver, arch); xbps_dbg_printf(xhp, "%s: ignoring pkg with unmatched arch (%s)\n", pkgver, arch);
free(pkgver);
free(arch);
return 0; return 0;
} }
free(arch); free(arch);