Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Free FILE* and buffer from util.c process_lines()
This feels really messy, although the actual diff is relatively small. It's primarily icky because it involves the callback configfile_helper(), which can invoke bsdtar_errc(). According to the comment for process_lines(), the callback is supposed to return 0 or non-zero. But since configfile_helper() or dooption() is exiting upon error instead of returning, process_lines() can't clean up after itself. My thought right now is that a better fix would involve a much larger change to libarchive code, but I'm open to other ideas.
- Loading branch information
Showing
3 changed files
with
23 additions
and
0 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
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