mirror of
https://github.com/janet-lang/janet
synced 2026-10-09 09:11:40 +00:00
free realpath() result with libc allocator (#1836)
This commit is contained in:
+1
-1
@@ -2677,7 +2677,7 @@ JANET_CORE_FN(os_realpath,
|
||||
janet_panicf("path does not exist: %v", ret);
|
||||
}
|
||||
#else
|
||||
janet_free(dest);
|
||||
free(dest);
|
||||
#endif
|
||||
return ret;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user