From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boram Park Subject: Memory leak of libdrm Date: Wed, 05 Oct 2011 13:00:14 +0900 Message-ID: <4E8BD64E.3020507@samsung.com> References: <20111001003209.754F71300B8@annarchy.freedesktop.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by gabe.freedesktop.org (Postfix) with ESMTP id 38CFB9E926 for ; Tue, 4 Oct 2011 21:10:17 -0700 (PDT) Received: from epcpsbgm1.samsung.com (mailout3.samsung.com [203.254.224.33]) by mailout3.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LSK00BFER3YN4F0@mailout3.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 05 Oct 2011 13:00:14 +0900 (KST) Received: from [165.213.220.211] by mmp1.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTPA id <0LSK00L1GR4E4G20@mmp1.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 05 Oct 2011 13:00:14 +0900 (KST) In-reply-to: <20111001003209.754F71300B8@annarchy.freedesktop.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: chris@chris-wilson.co.uk Cc: lsj119@samsung.com, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org Hello Chris Wilson. git : git://anongit.freedesktop.org/git/mesa/drm branch : master I found some memory leaks in xf86drmMode.c. When we call drmModeGetResources(), fbs, crtcs, connectors and encoders are newly allocated. But, drmModeFreeResources() doesn't free them. drmModeFreeProperty() also doesn't free blob_ids. I reported it to bugzilla and attached two patch files. - https://bugs.freedesktop.org/show_bug.cgi?id=41373 Could you review if it's a bug or not? Many thanks Boram.