X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=fs%2Fsandbox%2Fsandboxfs.c;h=ca8026133708d2e7083a004e92a952f19c6a66f9;hb=a6ea791cb96f76fd600f6547a715e24ef66ba5e2;hp=cd10fd6845fbe46ee6802fff801342e6cdf814cf;hpb=44afdc4a12b9f6f48338e7975e4f08cfe90dba74;p=u-boot diff --git a/fs/sandbox/sandboxfs.c b/fs/sandbox/sandboxfs.c index cd10fd6845..ca80261337 100644 --- a/fs/sandbox/sandboxfs.c +++ b/fs/sandbox/sandboxfs.c @@ -88,15 +88,16 @@ int sandbox_fs_ls(const char *dirname) ret = os_dirent_ls(dirname, &head); if (ret) - return ret; + goto out; for (node = head; node; node = node->next) { printf("%s %10lu %s\n", os_dirent_get_typename(node->type), node->size, node->name); } +out: os_dirent_free(head); - return 0; + return ret; } int sandbox_fs_exists(const char *filename)