bin/xbps-remove/clean-cache.c: resource leak (CID 62680)
This commit is contained in:
parent
596a37defa
commit
0af6db77e6
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user