mirror of
https://github.com/ziglang/zig.git
synced 2026-01-27 17:55:24 +00:00
macho: temp hash buffer has to live as long as pread error resolution
This commit is contained in:
parent
1bbafbc65f
commit
2f37278540
@ -289,12 +289,12 @@ pub fn writeAdhocSignature(
|
||||
// Calculate hash for each page (in file) and write it to the buffer
|
||||
var wg: WaitGroup = .{};
|
||||
{
|
||||
const buffer = try gpa.alloc(u8, self.page_size * total_pages);
|
||||
defer gpa.free(buffer);
|
||||
|
||||
const results = try gpa.alloc(fs.File.PReadError!usize, total_pages);
|
||||
defer gpa.free(results);
|
||||
{
|
||||
const buffer = try gpa.alloc(u8, self.page_size * total_pages);
|
||||
defer gpa.free(buffer);
|
||||
|
||||
wg.reset();
|
||||
defer wg.wait();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user