From patchwork Fri Jul 2 11:52:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Marek X-Patchwork-Id: 109863 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o62BtDpN031369 for ; Fri, 2 Jul 2010 11:55:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757498Ab0GBLyt (ORCPT ); Fri, 2 Jul 2010 07:54:49 -0400 Received: from cantor2.suse.de ([195.135.220.15]:36438 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754775Ab0GBLys (ORCPT ); Fri, 2 Jul 2010 07:54:48 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.221.2]) by mx2.suse.de (Postfix) with ESMTP id 0DE998F3B5; Fri, 2 Jul 2010 13:54:45 +0200 (CEST) Received: by sepie.suse.cz (Postfix, from userid 10020) id D9BD576404; Fri, 2 Jul 2010 13:52:34 +0200 (CEST) From: Michal Marek To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Martin Ettl , David Gibson Subject: [PATCH] scripts/dtc: Fix a resource leak Date: Fri, 2 Jul 2010 13:52:14 +0200 Message-Id: <1278071534-9820-1-git-send-email-mmarek@suse.cz> X-Mailer: git-send-email 1.7.1 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 02 Jul 2010 11:55:14 +0000 (UTC) diff --git a/scripts/dtc/fstree.c b/scripts/dtc/fstree.c index 766b269..8fe1bdf 100644 --- a/scripts/dtc/fstree.c +++ b/scripts/dtc/fstree.c @@ -77,6 +77,7 @@ static struct node *read_fstree(const char *dirname) free(tmpnam); } + closedir(d); return tree; }