-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MVM_dir_chdir_C_string and fix error messages for normal chdir op
Due to an error in the code, MVM_dir_chdir would not give the correct error number as a string back. Before: chdir failed: Unknown system error 2 After: chdir failed: no such file or directory
- Loading branch information
Showing
2 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here misses
MVM_free((void*)dirstring);
beforeMVM_exception_throw_adhoc
, which will lead to a memory leak. or just moveMVM_free((void*)dirstring);
to beforeif (chdir_error) {