Prevent a memory leak

This commit is contained in:
Serge Lamikhov-Center 2022-06-19 17:34:28 +03:00
parent 3aad501f5b
commit cb61d172bb

View File

@ -566,6 +566,8 @@ class elfio
static_cast<std::streampos>( i ) *
entry_size ) ||
stream.fail() ) {
delete seg;
seg = nullptr;
return false;
}