From 21060384d344d96b9053e43dd994d7ec4afa7f60 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 2 Jun 2012 16:51:22 +0200 Subject: [PATCH] xbps-repo/index.c: misc cosmetic change. --- bin/xbps-repo/index.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/xbps-repo/index.c b/bin/xbps-repo/index.c index 58f7f1e9..4853173b 100644 --- a/bin/xbps-repo/index.c +++ b/bin/xbps-repo/index.c @@ -95,10 +95,9 @@ again: } free(binpkg); } - if (found) { - if (!prop_array_externalize_to_zfile(array, plist)) - rv = errno; - } + if (found && !prop_array_externalize_to_zfile(array, plist)) + rv = errno; + free(plist); return rv;