8303068: Memory leak in DwarfFile::LineNumberProgram::run_line_number_program

Reviewed-by: jsjolen, tschatzl, chagedorn
This commit is contained in:
David Holmes 2023-02-27 21:38:12 +00:00
parent 784f7b1462
commit f7f10367b2

View File

@ -877,6 +877,8 @@ class DwarfFile : public ElfFile {
: _dwarf_file(dwarf_file), _reader(dwarf_file->fd()), _offset_in_library(offset_in_library),
_debug_line_offset(debug_line_offset), _is_pc_after_call(is_pc_after_call) {}
~LineNumberProgram() { delete _state; }
bool find_filename_and_line_number(char* filename, size_t filename_len, int* line);
};