[x265] [PATCH 1/3] Memory Leak Fix: Part 1
Andrey Semashev
andrey.semashev at gmail.com
Sun Nov 10 17:40:02 UTC 2024
On 11/10/24 13:50, Jean-Baptiste Kempf wrote:
> On Sun, 10 Nov 2024, at 06:39, Pavan Tarun Chakka Venkata wrote:
>
>> 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.
These two are not null checks.
The type casts are superfluous, though.
More information about the x265-devel
mailing list