scripts/dtc: Fix a resource leak
authorMartin Ettl <ettl.martin@gmx.de>
Sun, 21 Feb 2010 08:31:44 +0000 (09:31 +0100)
committerMichal Marek <mmarek@suse.cz>
Fri, 2 Jul 2010 11:51:11 +0000 (13:51 +0200)
commit5e8e1cc0a1c36c8ff156ac1f04a16422bd4ed3ac
treef2c489527d33e246c7d4d1f2cb979ea0c04a1e61
parentfbe3290f4558c72abf6e264c4a2ee708b0495d55
scripts/dtc: Fix a resource 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@gmx.de>
Cc: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/dtc/fstree.c