lib/transaction_revdeps.c: resource leak (CID 62723)

This commit is contained in:
Juan RP 2014-10-05 07:29:23 +02:00
parent aae88aa253
commit 4ae3d03594

View File

@ -58,6 +58,7 @@ check_virtual_pkgs(struct xbps_handle *xhp,
xbps_array_get_cstring(provides, i, &vpkgver);
if (strchr(vpkgver, '_') == NULL) {
tmp = xbps_xasprintf("%s_1", vpkgver);
free(vpkgver);
vpkgver = strdup(tmp);
}
vpkgname = xbps_pkg_name(vpkgver);