Skip to content

Memory Leak: File buffer not freed, leaking 16MB per demuxer instance #1993

@THE-Amrit-mahto-05

Description

@THE-Amrit-mahto-05

Description

Discovered a memory leak in CCExtractor: the file buffer allocated by the demuxer is never freed. This results in approximately 16MB of memory being leaked for each demuxer instance.

Steps to Reproduce

  1. Run CCExtractor on a video file.
  2. Observe memory usage of the process.
  3. Repeat with multiple files or instances.
  4. Memory usage continues to grow and is not released.

Impact

  • Long-running or batch operations can consume large amounts of memory.
  • Could cause crashes or slow performance on low-memory systems.
  • This is a real, current issue affecting stability, not a futuristic concern.

Suggestion

  • Free the allocated file buffer after demuxing completes.
  • Add tests to verify that buffers are properly released.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions