<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>On Sun, 10 Nov 2024, at 06:39, Pavan Tarun Chakka Venkata wrote:<br></div><blockquote type="cite" id="qt" style=""><div dir="ltr"><div class="qt-gmail_default" style="font-family:tahoma, sans-serif;"><div>-<br></div><div>+ if(m_param->numaPools) free((char*)m_param->numaPools);<br></div></div></div></blockquote><div><br></div><div>Free(null) is a no-op, so you can drop the if part.<br></div><div><br></div><blockquote type="cite" id="qt" style=""><div dir="ltr"><div class="qt-gmail_default" style="font-family:tahoma, sans-serif;"><div> if (m_latestParam->scalingLists != m_param->scalingLists)<br></div><div> free((char*)m_latestParam->scalingLists);<br></div><div>+ if (m_latestParam->numaPools != m_param->numaPools)<br></div><div>+ free((char*)m_latestParam->numaPools);<br></div></div></div></blockquote><div><br></div><div>As above.<br></div><div><br></div><div>jb<br></div><div id="sig60240713"><div class="signature">-- </div><div class="signature">Jean-Baptiste Kempf - President</div><div class="signature">+33 672 704 734</div><div class="signature"><a href="https://jbkempf.com/">https://jbkempf.com/</a></div><div class="signature"><br></div></div><div><br></div></body></html>