diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2008-03-14 13:02:53 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2008-03-14 13:02:53 +0100 |
commit | 14056577fd45e883c7687a6182daee39864174d3 (patch) | |
tree | 1c8d728f6c4f88955a62cd3243970b2d23a0612e /commands | |
parent | 20f3ac6e51a4a23d9994a533c2773f14c883f623 (diff) | |
download | barebox-14056577fd45e883c7687a6182daee39864174d3.tar.gz barebox-14056577fd45e883c7687a6182daee39864174d3.tar.xz |
md command: Close filedescriptor after use
Diffstat (limited to 'commands')
-rw-r--r-- | commands/mem.c | 2 |
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; } |