Skip to content
  • Francis Thérien's avatar
    8750cd5c
    mavmmaplog: Close the mmap object · 8750cd5c
    Francis Thérien authored
    The inherited close() method from the mavlogfile class only closes the file object. However, the mmap object also keeps a handle on the file, which prevents it from being deleted or opened in read mode even after we call close() This commit closes both the file object (by calling the super method) and the mmap object (directly), ensuring that all handles are freed.
    8750cd5c
    mavmmaplog: Close the mmap object
    Francis Thérien authored
    The inherited close() method from the mavlogfile class only closes the file object. However, the mmap object also keeps a handle on the file, which prevents it from being deleted or opened in read mode even after we call close() This commit closes both the file object (by calling the super method) and the mmap object (directly), ensuring that all handles are freed.
Loading