[Crosstoolchain-logs] [device-tree-compiler] 350/357: Fix a filehandle leak

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:06:31 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.

commit 0e89e8c5a02eab5655f21e732c8f2ff145712ba8
Author: Martin Ettl <ettl.martin at gmx.de>
Date:   Wed Jul 14 16:10:56 2010 +1000

    Fix a filehandle leak
    
    During a check of the current git head of the linux kernel with the
    static code analysis tool cppcheck
    (http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page)
    the tool discovered a resource leak in linux-2.6/scripts/dtc/fstree.c.
    
    Please refer the attached patch, that fixes the issue.
    
    Fixes https://bugzilla.kernel.org/show_bug.cgi?id=15363
    
    Signed-off-by: Martin Ettl <ettl.martin at gmx.de>
    Signed-off-by: Michal Marek <mmarek at suse.cz>
    Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
 fstree.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fstree.c b/fstree.c
index ba0da9d..f377453 100644
--- a/fstree.c
+++ b/fstree.c
@@ -75,6 +75,7 @@ static struct node *read_fstree(const char *dirname)
 		free(tmpnam);
 	}
 
+	closedir(d);
 	return tree;
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list