std.debug.Pdb: fix leak

This commit is contained in:
mlugg 2025-09-13 12:16:11 +01:00
parent 4cb84f8e48
commit d289667856
No known key found for this signature in database
GPG key ID: 3F5B7DCCBF4AF02E

View file

@ -171,6 +171,7 @@ pub fn parseInfoStream(self: *Pdb) !void {
const string_table_index = str_tab_index: {
const name_bytes_len = try reader.takeInt(u32, .little);
const name_bytes = try reader.readAlloc(gpa, name_bytes_len);
defer gpa.free(name_bytes);
const HashTableHeader = extern struct {
size: u32,