Skip to content

Commit 9b2609b

Browse files
committed
fix a bug in zephyr platform file api
1 parent 432ba8b commit 9b2609b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

core/shared/platform/zephyr/zephyr_file.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ os_openat(os_file_handle handle, const char *path, __wasi_oflags_t oflags,
451451
}
452452

453453
if (!build_absolute_path(abs_path, sizeof(abs_path), path)) {
454+
BH_FREE(*out);
454455
return __WASI_ENOMEM;
455456
}
456457

0 commit comments

Comments
 (0)