Skip to content

Commit

Permalink
Unmap the mapped file...
Browse files Browse the repository at this point in the history
  • Loading branch information
visuve committed Apr 13, 2024
1 parent e03f1a6 commit 6926b2e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion PystykorvaLib/MemoryMappedFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,14 @@ class MemoryMappedFileImpl

~MemoryMappedFileImpl()
{
if (_view)
{
munmap(_view, _size);
}

if (_descriptor)
{
::close(_descriptor);
close(_descriptor);
}
}

Expand Down

0 comments on commit 6926b2e

Please sign in to comment.