summaryrefslogtreecommitdiffhomepage
path: root/lib/fs.c
diff options
context:
space:
mode:
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);