Code in question:
https://github.com/openjdk/jdk/blob/master/src/hotspot/share/cds/aotClassLocation.cpp#L491-L495
The os::free() should be after the log_info().
https://github.com/openjdk/jdk/blob/master/src/hotspot/share/cds/aotClassLocation.cpp#L491-L495
The os::free() should be after the log_info().