Fixup xbps_register_repository().

--HG--
extra : convert_revision : 57fc23f8066038b2ff71ba580d3bd5c73616f079
This commit is contained in:
Juan RP 2008-12-20 04:35:47 +01:00
parent 57c8baf7d7
commit 835d4e7b7c
1 changed files with 2 additions and 5 deletions

View File

@ -186,7 +186,7 @@ xbps_register_repository(const char *uri)
XBPS_REPOLIST_PATH))
goto fail;
prop_object_release(array);
prop_object_release(dict);
} else {
/* Append into the array, the plist file exists. */
array = prop_dictionary_get(dict, "repository-list");
@ -218,10 +218,7 @@ xbps_register_repository(const char *uri)
return true;
fail:
if (array)
prop_object_release(array);
if (dict)
prop_object_release(dict);
prop_object_release(dict);
return false;
}