libxbps: switch to archive_read_{close,free}.
This commit is contained in:
parent
c61ba8dfcc
commit
412d4b7280
@ -609,7 +609,7 @@ xbps_unpack_binary_pkg(prop_dictionary_t pkg_repod)
|
||||
"%s: [unpack] failed to open binary package `%s': %s",
|
||||
pkgver, fname, strerror(rv));
|
||||
free(bpkg);
|
||||
archive_read_finish(ar);
|
||||
archive_read_free(ar);
|
||||
return rv;
|
||||
}
|
||||
free(bpkg);
|
||||
|
@ -198,7 +198,8 @@ xbps_dictionary_metadata_plist_by_url(const char *url, const char *plistf)
|
||||
|
||||
break;
|
||||
}
|
||||
archive_read_finish(a);
|
||||
archive_read_close(a);
|
||||
archive_read_free(a);
|
||||
|
||||
return plistd;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user