summaryrefslogtreecommitdiffstats
path: root/commands/mem.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-03-14 13:02:53 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2008-03-14 13:02:53 +0100
commit14056577fd45e883c7687a6182daee39864174d3 (patch)
tree1c8d728f6c4f88955a62cd3243970b2d23a0612e /commands/mem.c
parent20f3ac6e51a4a23d9994a533c2773f14c883f623 (diff)
downloadbarebox-14056577fd45e883c7687a6182daee39864174d3.tar.gz
barebox-14056577fd45e883c7687a6182daee39864174d3.tar.xz
md command: Close filedescriptor after use
Diffstat (limited to 'commands/mem.c')
-rw-r--r--commands/mem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/commands/mem.c b/commands/mem.c
index f6ab538bf9..8563b2d4d5 100644
--- a/commands/mem.c
+++ b/commands/mem.c
@@ -287,6 +287,8 @@ static int do_mem_mw ( cmd_tbl_t *cmdtp, int argc, char *argv[])
optind++;
}
+ close(fd);
+
return errno;
}