intel / cryptography-primitives

Apache License 2.0
319 stars 86 forks source link

memory leak in example code #35

Closed xhuan28 closed 2 years ago

xhuan28 commented 3 years ago

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] );

ifedyaev commented 3 years ago

Hi,

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

amatyuko-intc commented 2 years ago

The problem is fixed. Thanks for submitting an issue.