MGS-5789 [#imx-2156] Fix Coverity issue in VIP PM HW workaround
Fix resource leak issue in VIP PM HW workaround, set pointer to NULL before release funcCmd since they point to the same memory. Signed-off-by: Ella Feng <ella.feng@nxp.com>5.4-rM2-2.2.x-imx-squashed
parent
a6ff08ef2f
commit
5db279fcc5
|
@ -4279,13 +4279,13 @@ _FuncInit_FlopReset(
|
|||
(gctPOINTER *)&pointer
|
||||
));
|
||||
|
||||
Execution->funcCmd = (gcsFUNCTION_COMMAND_PTR)pointer;
|
||||
|
||||
gcmkONERROR(gckOS_ZeroMemory(
|
||||
(gctPOINTER)pointer,
|
||||
gcmSIZEOF(gcsFUNCTION_COMMAND) * Execution->funcCmdCount
|
||||
));
|
||||
|
||||
Execution->funcCmd = (gcsFUNCTION_COMMAND_PTR)pointer;
|
||||
|
||||
pool = gcvPOOL_DEFAULT;
|
||||
|
||||
#if gcdENABLE_CACHEABLE_COMMAND_BUFFER
|
||||
|
|
Loading…
Reference in New Issue