mirror of
https://github.com/serge1/ELFIO.git
synced 2024-12-26 18:15:40 +00:00
Prevent a memory leak
This commit is contained in:
parent
3aad501f5b
commit
cb61d172bb
@ -566,6 +566,8 @@ class elfio
|
||||
static_cast<std::streampos>( i ) *
|
||||
entry_size ) ||
|
||||
stream.fail() ) {
|
||||
delete seg;
|
||||
seg = nullptr;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user