e_comp: fix condition check for realloc 37/139337/2
authorSangjin Lee <lsj119@samsung.com>
Tue, 18 Jul 2017 11:06:57 +0000 (20:06 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Wed, 19 Jul 2017 11:31:57 +0000 (11:31 +0000)
commit1b0ccb72e22c4038bebc8186115ba24f692665d7
treef867063eb2cde2425192bd23eb137accdae022ce
parentdd7585e65697cea14a2742b694295da7d6b926cc
e_comp: fix condition check for realloc

It should be checked the return value for an error condition.
If it fails, realloc returns NULL. so if you use same value for return and param of realloc,
it is memory leak.

Change-Id: Iabdd913949fa30005cb56be6d824c2b7abb4ed2f
src/bin/e_comp.c