-
- Downloads
file: close() outside destructor
Once file::~file() is called, virtual functions no longer dispatch to the
derived type (which has since been destroyed) but to the base type, which
is uninteresting.
Move the call to close() from the destructor to fdrop().
Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
Please register or sign in to comment