free realpath() result with libc allocator (#1836)

This commit is contained in:
Khang Nguyen Duy
2026-08-29 06:28:35 -05:00
committed by GitHub
parent 4d91c507c4
commit b534bd11e3
+1 -1
View File
@@ -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