Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76222d6d authored by Mousumi Jana's avatar Mousumi Jana Committed by Mark Brown
Browse files

ASoC: Intel: Skylake: Fix memory leak during init instance



param_data variable is allocated during set module format of init
instance is not getting freed and hence can cause a memory leak.
So free it up.

Signed-off-by: default avatarMousumi Jana <mousumix.jana@intel.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 95536d8c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -864,7 +864,7 @@ int skl_init_module(struct skl_sst *ctx,
		return ret;
	}
	mconfig->m_state = SKL_MODULE_INIT_DONE;

	kfree(param_data);
	return ret;
}