Skip to content

Memory leak at Create function. #22

@Trico-Everfire

Description

@Trico-Everfire

https://github.com/NeilJed/VTFLib/blob/main/VTFLib/VTFFile.cpp#L661-L677

The memory leak in question is the generation of new data for the resizing of the image data, but instead of getting rid of the old data, it sets a new memory address without clearing the old one first. This is also UB as the image data is not VTFLib's to mutate, it should be copied and disposed of at the end.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions