[vlc-devel] stream_Peek memory management...

Peter Tap ptrtap at yahoo.com
Mon Sep 19 01:35:08 CEST 2011


Folks,

In vlc code, I noticed that the memory allocated from stream_Peek is not released in the code. A typical usage pattern is:

const uint8_t* p_Peek;
stream_Peek(s, &p_Peek, num);

So, when stream_Peek succeeds, it creates memory for p_Peek and fills it with required data.

What is confusing is that no one ever releases this memory.

Method stream_Peek is being used all over the modules.

What is it that I am missing?

Thank you in advance for your help.

Regards,
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110918/f9f0ca72/attachment.html>


More information about the vlc-devel mailing list