Use seperated variable for realloc return value 02/157502/1
authorSemun Lee <semun.lee@samsung.com>
Thu, 13 Jul 2017 01:48:13 +0000 (10:48 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 24 Oct 2017 23:55:01 +0000 (08:55 +0900)
commit1fff3287a3a7b664b8637c5e3ea2ff7c6b27cda7
tree688c25f3f4cc6affbc0a838648dff3dbf9ef9a91
parentca0c86a4f9f11849f780ca32bad0393c849c93bf
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>
src/preference.c