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
- Run CCExtractor on a video file.
- Observe memory usage of the process.
- Repeat with multiple files or instances.
- 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.