From 639ff2d642644c670c79bc1f32feb6ee272f6f73 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 11 Jun 2019 16:42:41 +0200 Subject: [PATCH] xbps_alternatives_register: get rid of an unnecessary change. Signed-off-by: Juan RP --- lib/package_alternatives.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/package_alternatives.c b/lib/package_alternatives.c index b90e3282..3fd2875c 100644 --- a/lib/package_alternatives.c +++ b/lib/package_alternatives.c @@ -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; }