diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2025-09-13 12:16:11 +0100 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2025-09-30 13:44:54 +0100 |
| commit | d28966785652822b7b763044ce4cb2421247a8f4 (patch) | |
| tree | 0e44e97bdc794d20073dcb10fa355800005fe643 /lib/std/debug/Pdb.zig | |
| parent | 4cb84f8e486426e66e17cc91dd880d9bdcabc680 (diff) | |
| download | zig-d28966785652822b7b763044ce4cb2421247a8f4.tar.gz zig-d28966785652822b7b763044ce4cb2421247a8f4.zip | |
std.debug.Pdb: fix leak
Diffstat (limited to 'lib/std/debug/Pdb.zig')
| -rw-r--r-- | lib/std/debug/Pdb.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/debug/Pdb.zig b/lib/std/debug/Pdb.zig index 008aad6ab6..66010ba377 100644 --- a/lib/std/debug/Pdb.zig +++ b/lib/std/debug/Pdb.zig @@ -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, |
