summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorStefan Brüns <stefan.bruens@rwth-aachen.de>2016-10-01 18:41:38 (GMT)
committerSimon Glass <sjg@chromium.org>2016-10-11 16:17:07 (GMT)
commit86167089b71c6b701194604e3dc66a67c6ea076a (patch)
treeebc88cced443650236864025e6b9108d749dcf90 /fs
parent99785de83e8198b5d5468453d49a8735b048983d (diff)
downloadu-boot-fsl-qoriq-86167089b71c6b701194604e3dc66a67c6ea076a.tar.xz
sandbox/fs: Free memory allocated by os_dirent_ls
Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/sandbox/sandboxfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/sandbox/sandboxfs.c b/fs/sandbox/sandboxfs.c
index 2703eed..cd10fd6 100644
--- a/fs/sandbox/sandboxfs.c
+++ b/fs/sandbox/sandboxfs.c
@@ -94,6 +94,7 @@ int sandbox_fs_ls(const char *dirname)
printf("%s %10lu %s\n", os_dirent_get_typename(node->type),
node->size, node->name);
}
+ os_dirent_free(head);
return 0;
}