xbps_alternatives_register: get rid of an unnecessary change.

Signed-off-by: Juan RP <xtraeme@gmail.com>
This commit is contained in:
Juan RP 2019-06-11 16:42:41 +02:00 committed by Duncan Overbruck
parent d189921818
commit 639ff2d642

View File

@ -492,8 +492,7 @@ xbps_alternatives_register(struct xbps_handle *xhp, xbps_dictionary_t pkg_repod)
rv = create_symlinks(xhp,
xbps_dictionary_get(pkg_alternatives, keyname),
keyname);
if (alloc)
xbps_object_release(array);
xbps_object_release(array);
if (rv != 0)
break;
}