mirror of
https://github.com/serge1/ELFIO.git
synced 2024-11-19 11:14:46 +00:00
Update elfio.hpp
Fix a memory leak that misuses unique_ptr
This commit is contained in:
parent
aecc192aa6
commit
5be0f95443
@ -149,7 +149,7 @@ class elfio
|
||||
bool ret = load( *pstream, is_lazy );
|
||||
|
||||
if ( !is_lazy ) {
|
||||
pstream.release();
|
||||
pstream.reset();
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user