summaryrefslogtreecommitdiffhomepage
path: root/lib/fs.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-04-01 19:24:49 +0200
committerJo-Philipp Wich <jo@mein.io>2021-04-24 23:44:04 +0200
commitf2c4b79feaffd7b2fdb4041f47c9cd0f4cc3bc6e (patch)
tree4b07c881aacb2a81f027ce59fe0e8b2bb63b2eaa /lib/fs.c
parent93ededbe93ff1e5949387996b69892c9220a94e8 (diff)
treewide: fix issues reported by clang code analyzer
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lib/fs.c')
-rw-r--r--lib/fs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/fs.c b/lib/fs.c
index 6ea4ec1..7a33529 100644
--- a/lib/fs.c
+++ b/lib/fs.c
@@ -629,6 +629,7 @@ uc_fs_getcwd(uc_vm *vm, size_t nargs)
if (errno == ERANGE)
continue;
+ free(buf);
err_return(errno);
}
while (true);