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

Johan Sjölen jsjolen at openjdk.org
Sun Feb 26 10:16:04 UTC 2023


On Fri, 24 Feb 2023 04:48:53 GMT, David Holmes <dholmes at openjdk.org> wrote:

> After allocating:
> 
> _state = new (std::nothrow) LineNumberProgramState(_header);
> 
> we need to `delete _state` before returning.
> 
> Testing: tiers 1-3
> 
> Thanks.

OK, that's fair to me, thanks for the changes.

-------------

Marked as reviewed by jsjolen (Committer).

PR: https://git.openjdk.org/jdk/pull/12738


More information about the hotspot-dev mailing list