pass: thermal: Prevent memory leakage 90/206790/2
authorDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 30 Apr 2019 04:11:39 +0000 (13:11 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Mon, 27 May 2019 08:15:49 +0000 (17:15 +0900)
commit3ec20dd0ab16e212ad4bcf64fa04602287e30643
tree244a27197729a84415e50a974fc96105af5e5873
parent79ab724716daa0aa08d17e123f53ccdeab4ecf71
pass: thermal: Prevent memory leakage

To prevent memory leakage, free allocated memory on error case.

Change-Id: If0c94bc23e47eafff594afb435b909b544708ac3
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
src/thermal/thermal.c