linux/sound/soc/mid-x86
Lu Guanqun 283e42e011 ASoC: sst_platform: fix memory leak
snd_pcm_hw_constraint_integer() could return -1, in this case, sst platform is
not opened successfully.  However the corresponding close callback isn't able
to be called later on to release these two allocated memories, thus resulting
in memory leak.

This patch moves the check for hardware contraints earlier, thus resolving this
issue.

Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2011-09-08 15:43:03 -07:00
..
Kconfig ASoC: mid-x86: Fix dependency on intel_sst driver 2011-02-07 11:23:45 +00:00
Makefile ASoC: mid-x86 - remove the flag in makefile 2011-01-10 11:36:02 +00:00
mfld_machine.c ASoC: mfld_machine: make use of soc_register_card API 2011-02-15 17:59:05 -08:00
sst_platform.c ASoC: sst_platform: fix memory leak 2011-09-08 15:43:03 -07:00
sst_platform.h ASoC: sst v2: Add mid platform driver 2011-01-06 13:48:58 +00:00