ASoC: topology: free stream_name of dai_drv
authorBard liao <yung-chuan.liao@linux.intel.com>
Tue, 5 Mar 2019 15:57:52 +0000 (23:57 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 19 Mar 2019 11:50:06 +0000 (11:50 +0000)
commit7b6f68a4df4df3a58e854d24da991640bd4d9590
tree9dec1b7c79761626a89d55a6cf3985a565727839
parent3863293a96c3e2481192b435fe0d85feed1ea47c
ASoC: topology: free stream_name of dai_drv

The stream_name is allocated by kstrdup. We have to free it when the
dai is removed or return from error.

Signed-off-by: Bard liao <yung-chuan.liao@linux.intel.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology.c