scripts/dtc: Fix a resource leak
diff mbox

Message ID 1278071534-9820-1-git-send-email-mmarek@suse.cz
State Accepted
Headers show

Commit Message

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

Patch
diff mbox

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