Update elfio.hpp

Fix a memory leak that misuses unique_ptr
This commit is contained in:
Hao Chen 2023-02-10 14:03:45 -05:00 committed by Serge Lamikhov-Center
parent aecc192aa6
commit 5be0f95443

View File

@ -149,7 +149,7 @@ class elfio
bool ret = load( *pstream, is_lazy );
if ( !is_lazy ) {
pstream.release();
pstream.reset();
}
return ret;