Skip to content

Temporary file created by HybridMemoryStream in Transposer not deleted #367

@mjmckp

Description

@mjmckp

The HybridMemoryStream created in the Transposer

var stream = new HybridMemoryStream();

is closed, but never disposed. This is because the Dispose implementation of the BinaryLoader here

only calls Dispose on the System.IO.BinaryReader it contains, which in turn only calls Close on HybridMemoryStream, but not Dispose (see https://referencesource.microsoft.com/#mscorlib/system/io/binaryreader.cs,91). Therefore, the deletion of the temporary file here

is never reached.

This is causing the temporary directory on my PC to fill up all the available space on the disk.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions