We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
free
_Exit
1 parent c6f2c05 commit 2c2fc9aCopy full SHA for 2c2fc9a
1 file changed
libc-bottom-half/libpreopen/libpreopen.c
@@ -547,13 +547,11 @@ __wasilibc_populate_libpreopen(void)
547
// TODO: Remove the cast on `path` once the witx is updated with char8 support.
548
ret = __wasi_fd_prestat_dir_name(fd, (uint8_t *)path, prestat.u.dir.pr_name_len);
549
if (ret != __WASI_ERRNO_SUCCESS) {
550
- free(path);
551
goto oserr;
552
}
553
path[prestat.u.dir.pr_name_len] = '\0';
554
555
if (internal_register_preopened_fd(fd, path) != 0) {
556
557
goto software;
558
559
0 commit comments