From: Jeff Garzik Subject: Re: [PATCH hail] chunkd: don't leak an FS object iterator Date: Thu, 30 Sep 2010 14:52:54 -0400 Message-ID: <4CA4DC86.2020608@garzik.org> References: <87aan0k249.fsf@meyering.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=exy4MXYjdFp9fXajAA7vjAFuRMW4Gj5mX+K3wFeNfHU=; b=PVwi4iuNkAY3wRL47rFQwWGNCoR13DI2CsFCSHZlvgRuI+8vXmHehzJoArdrG743Wi 6yAJrYWaaleQfsYS+Yf4G9/iQi9yGCInQKlPYqsFlfnsL1+eIJW5OWySzIHWN1HVPLJ6 PLX9iZrG53YkeFt3Oz62GYjFUDVU8pJy5UI1I= In-Reply-To: <87aan0k249.fsf@meyering.net> Sender: hail-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Jim Meyering Cc: Project Hail , Pete Zaitcev On 09/29/2010 11:20 AM, Jim Meyering wrote: > > chk_list_objs called fs_list_objs_open without also calling > fs_list_objs_close. > > 32,808 bytes in 1 blocks are definitely lost in loss record 413 of 419 > at 0x4A0515D: malloc (vg_replace_malloc.c:195) > by 0x31BA8A26D0: __alloc_dir (opendir.c:184) > by 0x405619: fs_list_objs_open (be-fs.c:974) > by 0x40B202: chk_list_objs (selfcheck.c:41) > by 0x40B575: chk_dbscan (selfcheck.c:131) > by 0x40B628: chk_thread_scan (selfcheck.c:147) > by 0x40B757: chk_thread_command (selfcheck.c:179) > by 0x40B890: chk_thread_func (selfcheck.c:219) > by 0x31BC464E83: g_thread_create_proxy (gthread.c:1893) > by 0x31BB407760: start_thread (pthread_create.c:301) > by 0x31BA8E151C: clone (clone.S:115) > > Signed-off-by: Jim Meyering applied