Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

Memory leak in MPEG2VideoDecoderBase?

dewildt
Beginner
359 Views
I think I found a small memory leak in MPEG2VideoDecoderBase:

In the beginning MPEG2VideoDecoderBase::Init() will call BaseCodec::Init().
If the initialization parameter of BaseCodecParams->lpMemoryAllocator is set to NULL, then BaseCodec::Init() will create an own instance of DefaultMemoryAllocator for m_pMemoryAllocator and m_bOwnAllocator is set to true.
In the further processing of MPEG2VideoDecoderBase::Init() the method Reset() is called which will set m_bOwnAllocator to false.
The result is that m_pMemoryAllocator will never be freed.

regards,
Daniel
0 Kudos
3 Replies
Vladimir_Dudnik
Employee
359 Views

Thanks Daniel,

I'll forward this info to ourdevelopers. By the way what version of IPP do you use? Is that the latest IPP 5.3 release?

Regards,
Vladimir

0 Kudos
Leonid_K_Intel
Employee
359 Views

It really happened and was fixed before IPP 5.2 gold.

Thanks,

Leonid

0 Kudos
dewildt
Beginner
359 Views
I'm using the IPP-samples 5.3.083 (but that part of the code identical to that of version 5.3.095)
0 Kudos
Reply