[alsa-devel] [PATCH 2/12] ak4642: fix a memory leak if failed to initialise AK4642

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Thu Jul 15 08:29:55 CEST 2010

Dear Axel

> I think the i2c core will take care of it now.
> see below commit log:
> commit e4a7b9b04de15f6b63da5ccdd373ffa3057a3681

Ohh !!
I didn't know that.

> In ak4642_init, current implementation will call
> snd_soc_unregister_codec(codec);  before goto reg_cache_err;
> Therefore, it should be no problem.

Indeed =)

So now, your patches are very good !!

Best regards
Kuninori Morimoto

More information about the Alsa-devel mailing list