arr has been checked earlier so as to avoid when it is NULL.
SVACE complains if there is a possibility of being NULL earlier
then it should be checked even when freeing.
So added the NULL check before free.
@fix
Change-Id: Idb82aa557e3b08890a1496200ee282db9552c1dd
Signed-off-by: Alok Mishra <alok.mishra@samsung.com>
DBG("gl depth: %d", _elm_config->gl_depth);
DBG("gl stencil: %d", _elm_config->gl_stencil);
DBG("gl msaa: %d", _elm_config->gl_msaa);
- free(arr[0]);
- free(arr);
+ if (arr)
+ {
+ free(arr[0]);
+ free(arr);
+ }
if (is_hw_accel == EINA_FALSE)
{