mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-14 18:03:44 +00:00
8283379: Memory leak in FileHeaderHelper
Reviewed-by: dholmes, iklam, stuefe
This commit is contained in:
parent
909986c7e1
commit
cb576da575
@ -1108,6 +1108,9 @@ public:
|
||||
}
|
||||
|
||||
~FileHeaderHelper() {
|
||||
if (_header != nullptr) {
|
||||
FREE_C_HEAP_ARRAY(char, _header);
|
||||
}
|
||||
if (_fd != -1) {
|
||||
::close(_fd);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user