elm_config: fix for dereferencing after comparing to NULL
authorAlok Mishra <alok.mishra@samsung.com>
Mon, 2 Jan 2017 06:14:13 +0000 (15:14 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Mon, 2 Jan 2017 06:14:13 +0000 (15:14 +0900)
commitb1f1cd14c21948ba8a6b629ff8c686f68f891897
tree1d2e5f1dd6dfc5f6b05db5b284b157207e445703
parent9bdaf07d6ec740a92077af17bddbb914898cd315
elm_config: fix for dereferencing after comparing to NULL

Summary:
arr has been checked earlier so as to avoid when it is NULL.
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

Reviewers: singh.amitesh, bu5hm4n, tasn, cedric, raster, atulfokk, hyunseok, minkyu, Hermet, jpeg

Reviewed By: jpeg

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4537
src/lib/elementary/elm_config.c