From 0af6db77e6fa0f7dad18584ea0844afa8dc9ed45 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 5 Oct 2014 08:00:31 +0200 Subject: [PATCH] bin/xbps-remove/clean-cache.c: resource leak (CID 62680) --- bin/xbps-remove/clean-cache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/xbps-remove/clean-cache.c b/bin/xbps-remove/clean-cache.c index 69ab0bda..7f16752f 100644 --- a/bin/xbps-remove/clean-cache.c +++ b/bin/xbps-remove/clean-cache.c @@ -54,6 +54,8 @@ cleaner_cb(struct xbps_handle *xhp, xbps_object_t obj, if (!xbps_pkg_arch_match(xhp, arch, NULL)) { xbps_dbg_printf(xhp, "%s: ignoring pkg with unmatched arch (%s)\n", pkgver, arch); + free(pkgver); + free(arch); return 0; } free(arch);