lib/transaction_revdeps.c: resource leak (CID 62723)
This commit is contained in:
parent
aae88aa253
commit
4ae3d03594
@ -58,6 +58,7 @@ check_virtual_pkgs(struct xbps_handle *xhp,
|
|||||||
xbps_array_get_cstring(provides, i, &vpkgver);
|
xbps_array_get_cstring(provides, i, &vpkgver);
|
||||||
if (strchr(vpkgver, '_') == NULL) {
|
if (strchr(vpkgver, '_') == NULL) {
|
||||||
tmp = xbps_xasprintf("%s_1", vpkgver);
|
tmp = xbps_xasprintf("%s_1", vpkgver);
|
||||||
|
free(vpkgver);
|
||||||
vpkgver = strdup(tmp);
|
vpkgver = strdup(tmp);
|
||||||
}
|
}
|
||||||
vpkgname = xbps_pkg_name(vpkgver);
|
vpkgname = xbps_pkg_name(vpkgver);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user