From: Takashi Iwai Subject: Re: Salsa-lib memleak Date: Tue, 05 Feb 2008 12:29:39 +0100 Message-ID: References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id A3B062433B for ; Tue, 5 Feb 2008 12:29:39 +0100 (CET) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Matthieu CASTET Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 5 Feb 2008 10:22:30 +0000 (UTC), Matthieu CASTET wrote: > > Hi, > > it seems Salsa-lib leak memory in case of errors. > For snd_pcm_open, snd_pcm_t is allocated, but not free in case of > snd_pcm_hw_mmap_status error. > > The same things happen in _snd_pcm_mmap, there error return in middle of the > code, without freeing the allocated memory. Thanks. Fixed and released as 0.0.16. The tarball will appear in the export ftp later. Takashi