diff options
author | Tom Rini <trini@ti.com> | 2014-12-04 09:24:05 -0500 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-12-04 09:24:05 -0500 |
commit | 97cdf64026c7d749dd7a5c0dbaba7a60a7292ac9 (patch) | |
tree | 2bd7522657fef09538d52b4dd6cef71a9031d273 /arch/sandbox | |
parent | f0c6e1c31b94f193047619b6adf67c2d792b659e (diff) | |
parent | 1d8104fe8897c5fec3e03b4165bc67c57eeeaa72 (diff) |
Merge branch 'sandbox' of git://git.denx.de/u-boot-x86
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/cpu/os.c | 1 | ||||
-rw-r--r-- | arch/sandbox/cpu/start.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c index 31c93443db..4d5f805753 100644 --- a/arch/sandbox/cpu/os.c +++ b/arch/sandbox/cpu/os.c @@ -367,6 +367,7 @@ int os_dirent_ls(const char *dirname, struct os_dirent_node **headp) done: closedir(dir); + free(fname); return ret; } diff --git a/arch/sandbox/cpu/start.c b/arch/sandbox/cpu/start.c index 0df77704c6..42353d80a8 100644 --- a/arch/sandbox/cpu/start.c +++ b/arch/sandbox/cpu/start.c @@ -130,7 +130,8 @@ static int sandbox_cmdline_cb_memory(struct sandbox_state *state, state->write_ram_buf = true; state->ram_buf_fname = arg; - if (os_read_ram_buf(arg)) { + err = os_read_ram_buf(arg); + if (err) { printf("Failed to read RAM buffer\n"); return err; } |