xbps_get_pkg_plist_from_binpkg: fix a double free, found by Gottox.
xbps-query -Rf foo without network was enough to trigger it.
This commit is contained in:
1 parent
fbf4ed4d2a
commit
3cc8929ce1
2 files changed
+3
-1
No files matched your search
@@ -101,7 +101,6 @@ open_archive_by_url(struct url *url)
|
||||
|
||||
if (archive_read_open(a, f, fetch_archive_open, fetch_archive_read,
|
||||
fetch_archive_close)) {
|
||||
free(f);
|
||||
archive_read_finish(a);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user