Fix previous.
--HG-- extra : convert_revision : c8915be223a5803f58583be20b99a31eabf69263
This commit is contained in:
parent
0c0e796fc5
commit
30997094d6
1 changed files with 2 additions and 3 deletions
|
@ -279,17 +279,16 @@ xbps_register_repository(const char *uri)
|
|||
obj = prop_string_create_cstring(uri);
|
||||
if (!xbps_add_obj_to_array(array, obj)) {
|
||||
prop_object_release(obj);
|
||||
goto fail;
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Write dictionary into plist file. */
|
||||
if (!prop_dictionary_externalize_to_file(dict, plist)) {
|
||||
prop_object_release(obj);
|
||||
goto fail;
|
||||
return false;
|
||||
}
|
||||
|
||||
prop_object_release(obj);
|
||||
prop_object_release(dict);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue