Use seperated variable for realloc return value 82/138582/2
authorSemun Lee <semun.lee@samsung.com>
Thu, 13 Jul 2017 01:48:13 +0000 (10:48 +0900)
committerSemun Lee <semun.lee@samsung.com>
Thu, 13 Jul 2017 02:38:37 +0000 (11:38 +0900)
commitc0a4c174740a1dc1eb9f8f04576eeb89601ce823
treef1890ed0a8163bf886fc335c20396bbf6fa8a02f
parent48d5d8cda7b958cde2f64a6b1e9256b24aea2f1d
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