Skip to content

Commit f7f1036

Browse files
author
David Holmes
committed
8303068: Memory leak in DwarfFile::LineNumberProgram::run_line_number_program
Reviewed-by: jsjolen, tschatzl, chagedorn
1 parent 784f7b1 commit f7f1036

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/hotspot/share/utilities/elfFile.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,8 @@ class DwarfFile : public ElfFile {
877877
: _dwarf_file(dwarf_file), _reader(dwarf_file->fd()), _offset_in_library(offset_in_library),
878878
_debug_line_offset(debug_line_offset), _is_pc_after_call(is_pc_after_call) {}
879879

880+
~LineNumberProgram() { delete _state; }
881+
880882
bool find_filename_and_line_number(char* filename, size_t filename_len, int* line);
881883
};
882884

0 commit comments

Comments
 (0)