[x265] [PATCH 1/3] Memory Leak Fix: Part 1

Jean-Baptiste Kempf jb at videolan.org
Sun Nov 10 10:50:08 UTC 2024


On Sun, 10 Nov 2024, at 06:39, Pavan Tarun Chakka Venkata wrote:
> -
> +            if(m_param->numaPools)    free((char*)m_param->numaPools);

Free(null) is a no-op, so you can drop the if part.

>          if (m_latestParam->scalingLists != m_param->scalingLists)
>              free((char*)m_latestParam->scalingLists);
> +        if (m_latestParam->numaPools != m_param->numaPools)
> +            free((char*)m_latestParam->numaPools);

As above.

jb
-- 
Jean-Baptiste Kempf -  President
+33 672 704 734
https://jbkempf.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20241110/6174522a/attachment-0001.htm>


More information about the x265-devel mailing list