diff mbox

scripts/dtc: Fix a resource leak

Message ID 1278071534-9820-1-git-send-email-mmarek@suse.cz (mailing list archive)
State Accepted
Headers show

Commit Message

Michal Marek July 2, 2010, 11:52 a.m. UTC
None
diff mbox

Patch

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;
 }