Use seperated variable for realloc return value
authorSemun Lee <semun.lee@samsung.com>
Thu, 13 Jul 2017 01:48:13 +0000 (10:48 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 25 Jul 2017 01:01:39 +0000 (10:01 +0900)
commit6a7e6b1aa993e603e2bbd1103faaacbf794187de
treef1890ed0a8163bf886fc335c20396bbf6fa8a02f
parent27ddc7c24d23d65619f150ab4252f03bd8e5d3d1
Use seperated variable for realloc return value

Using the same variable for return value and input parameter
of realloc() may cause memory leak when realloc() fails
to allocate new memory.

Change-Id: If2ee2134b272e6fc158fc400dc352704d81b0e24
Signed-off-by: Semun Lee <semun.lee@samsung.com>
preference/preference.c