mirror of
https://github.com/serge1/ELFIO.git
synced 2024-12-27 12:17:28 +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 ) *
|
static_cast<std::streampos>( i ) *
|
||||||
entry_size ) ||
|
entry_size ) ||
|
||||||
stream.fail() ) {
|
stream.fail() ) {
|
||||||
|
delete seg;
|
||||||
|
seg = nullptr;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user