intel/cryptography-primitives

memory leak in example code

Closed this issue · 2 comments

I notice that there is a potential memory leak risk in the example:
Line156:

delete (Ipp8u*)m_pBN;

should be

delete[] (Ipp8u*)m_pBN;

to match

m_pBN = (IppsBigNumState*)( new Ipp8u[size] );

Hi,

thank you for contacting us. We'll fix it in the next release.

The problem is fixed. Thanks for submitting an issue.