Thermal/int340x: Fix memleak for aux trip
commitd5bce867778c8cb5ff655efe47fecb4b31f30406
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Mon, 2 Mar 2015 21:12:07 +0000 (2 13:12 -0800)
committerEduardo Valentin <edubezval@gmail.com>
Thu, 5 Mar 2015 05:41:51 +0000 (5 01:41 -0400)
treebb13e8227c54ca1d747e639f9ab05eed12cce170
parent78045bfe85c7c3a9ae76bd330bb261eefff9ea57
Thermal/int340x: Fix memleak for aux trip

When thermal zone device register fails or on module exit, the memory
for aux_trip is not freed. This change fixes this issue.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/int340x_thermal/int340x_thermal_zone.c