-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix leak when unsetting PATH in main shell
src/cmd/ksh93/sh/path.c: - Stop calling path_dup() on defpathinit() return value as it immediately raises the reference count of the path components to 2 and makes it such that a single path_delete() is not sufficient for freeing the path components. The path_dup() call in path_addpath() which caused the leak was last strictly necessary probably in ksh93o. Progresses: ksh93#405
- Loading branch information
Showing
2 changed files
with
3 additions
and
4 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