elm_config: SVACE fix for dereferencing after comparing to NULL 89/88489/6
authorAlok Mishra <alok.mishra@samsung.com>
Mon, 19 Sep 2016 09:43:00 +0000 (15:13 +0530)
committerHermet Park <chuneon.park@samsung.com>
Thu, 22 Sep 2016 13:15:49 +0000 (06:15 -0700)
commit6e48e9094ea5acd51244ff8b6d73b45ba2d2158f
tree6675d6286771f5a61391b12e0f67cdfa5a1183da
parent46a5b2ef0eaa665ae6ea1deb25c29d9f15428dc8
elm_config: SVACE fix for dereferencing after comparing to NULL

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>
src/lib/elm_config.c