From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: memory leaks? Date: Wed, 30 Mar 2005 14:18:27 +0200 Message-ID: References: <1111896886.2408.1.camel@mindpipe> <1112127843.5141.12.camel@mindpipe> <1112131916.5386.6.camel@mindpipe> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: multipart/mixed; boundary="Multipart_Wed_Mar_30_14:18:27_2005-1" Return-path: In-Reply-To: Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Lee Revell Cc: alsa-devel List-Id: alsa-devel@alsa-project.org --Multipart_Wed_Mar_30_14:18:27_2005-1 Content-Type: text/plain; charset=US-ASCII At Wed, 30 Mar 2005 14:08:05 +0200, I wrote: > > Nice catch. Does the patch below fix the problem? I found it's not enough. Try this one please. (I'll commit this to CVS now, anyway.) Takashi --Multipart_Wed_Mar_30_14:18:27_2005-1 Content-Type: text/plain; charset=US-ASCII Index: alsa-kernel/core/seq/seq_midi.c =================================================================== RCS file: /home/iwai/cvs/alsa/alsa-kernel/core/seq/seq_midi.c,v retrieving revision 1.26 diff -u -r1.26 seq_midi.c --- alsa-kernel/core/seq/seq_midi.c 22 Mar 2005 15:21:18 -0000 1.26 +++ alsa-kernel/core/seq/seq_midi.c 30 Mar 2005 12:17:27 -0000 @@ -414,6 +414,8 @@ if (newclient) synths[card->number] = client; up(®ister_mutex); + kfree(info); + kfree(port); return 0; /* success */ __nomem: --Multipart_Wed_Mar_30_14:18:27_2005-1-- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click