FrameData.Bytes() alloc memory and never free #141
Answered
by
asticode
JoeyLee0201
asked this question in
Q&A
-
Hi, I recently implemented a progress via learning demuxing_decoding I wrote a function to handle video frame like this:
I make sure to have called frame.Unref() and frame.Free(), and I notice the heap about Thank you !
|
Beta Was this translation helpful? Give feedback.
Answered by
asticode
Mar 27, 2025
Replies: 1 comment 2 replies
-
I've also experienced this behavior and here were my conclusions:
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
JoeyLee0201
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've also experienced this behavior and here were my conclusions:
in_use_space
is behaving properly, you're goodalloc_space
not freeing memory space back to the OS hugely depends on the allocator you're using. I had widely different behaviors between different allocators I tested (e.g. tcmalloc, jemalloc, etc.)