libxbps: switch to archive_read_{close,free}.

This commit is contained in:
Juan RP 2012-06-12 22:22:46 +02:00
parent c61ba8dfcc
commit 412d4b7280
2 changed files with 3 additions and 2 deletions

View File

@ -609,7 +609,7 @@ xbps_unpack_binary_pkg(prop_dictionary_t pkg_repod)
"%s: [unpack] failed to open binary package `%s': %s", "%s: [unpack] failed to open binary package `%s': %s",
pkgver, fname, strerror(rv)); pkgver, fname, strerror(rv));
free(bpkg); free(bpkg);
archive_read_finish(ar); archive_read_free(ar);
return rv; return rv;
} }
free(bpkg); free(bpkg);

View File

@ -198,7 +198,8 @@ xbps_dictionary_metadata_plist_by_url(const char *url, const char *plistf)
break; break;
} }
archive_read_finish(a); archive_read_close(a);
archive_read_free(a);
return plistd; return plistd;
} }