summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-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;
}