ASoC: topology: Fix memory leak in widget creation
authorJeeja KP <jeeja.kp@intel.com>
Thu, 5 May 2016 05:49:18 +0000 (11:19 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 5 May 2016 15:46:29 +0000 (16:46 +0100)
commit8ea416748bb04b7a778cb8d2fd5ec7fa51b9d521
tree89cacbd61c60a70285bdbc72ce26aa7ed825e261
parent06eb49f72fa57f5a49acdf9f4af84d2d326513b3
ASoC: topology: Fix memory leak in widget creation

name and sname allocated in widget create are not freed when
creation is successful, so free them.

Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology.c