From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH] ASoC: core: fix possible memory leak in snd_soc_bytes_put() Date: Tue, 12 Mar 2013 18:43:19 +0000 Message-ID: <20130312184319.GM19942@opensource.wolfsonmicro.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8076977951839843728==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Wei Yongjun Cc: alsa-devel@alsa-project.org, tiwai@suse.de, linux-kernel@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, lgirdwood@gmail.com, rob.herring@calxeda.com, grant.likely@secretlab.ca, yongjun_wei@trendmicro.com.cn List-Id: devicetree@vger.kernel.org --===============8076977951839843728== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Z/kiM2A+9acXa48/" Content-Disposition: inline --Z/kiM2A+9acXa48/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 12, 2013 at 12:35:14AM +0800, Wei Yongjun wrote: > From: Wei Yongjun >=20 > 'data' is malloced in snd_soc_bytes_put() and should be freed > before leaving from the error handling cases, otherwise it will cause > memory leak. Applied, thanks. --Z/kiM2A+9acXa48/ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBAgAGBQJRP3dAAAoJELSic+t+oim9NxoQAJLV5Is+wD+32jmk8xDatbVs kAcoltspELFNTGAxYNeWw+ZqQp/GsTvC4sHy5rqt1zxc9X5iQBkK933KvJ//yrdD ozu49KGvtn+0rVJKv0nwVCEG+pZhkodUAK8XWnKBtXoeFWCmMjcjLOEmMiUBuRPF 7IFLS70IRBkA1xRWyaKsQFr3hLCarbCFyYEkm+Td6Wmzr/1uk14JmJ/dLkh5AQ+k 3AWGeGJajPcbVSfDSxZsIiIGm1sGTUOGAtiB27NbWSWqcOvbLFKkXglI0bsDnMF4 /AclfcFXI9N6Kng5L8CZIcq+qX61UtWHfJ3aMwgtd8PzhVdqt2ePYMIw873fnCha V6Pim7UbPP8BQQ05GVIwYA2JJZcPgsw6JnkVEWQSyfToDjgtSEKIPC5Hb+nLYP9M 57zjoxK0QEj1GYA/bkmYvYppqxeG38qG6b0YA8lLDsTt3/7oc/O1ZvOwpDygFGyH ikrkA4ZxL2bjhJcuDtyB3/8M/e4ay2D1ib6LvB4RJcd1xAG81beffJI/Bzs6Y1i1 vV2MBvxDpcJlTg69yXiPT3DWRsTSO8oF+bKacsCRlIm0der8p0O7HGQYdiTwBcXt NE8wVUKdzeqZERP6+rnIjbOjMTTUzNWOOsBgIKYcEqmCb+uviDsOTtu628f9bI9n FPubaI1p5DhpgRKezSLr =kycF -----END PGP SIGNATURE----- --Z/kiM2A+9acXa48/-- --===============8076977951839843728== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============8076977951839843728==--