Skip to content

Resolve memory leak and compiler warnings.#1

Open
Seep1959 wants to merge 2 commits intoryanflannery:masterfrom
Seep1959:master
Open

Resolve memory leak and compiler warnings.#1
Seep1959 wants to merge 2 commits intoryanflannery:masterfrom
Seep1959:master

Conversation

@Seep1959
Copy link
Copy Markdown

argv_finish_token() allocates a character array for the next token in argv. After parsing the full command line, str2argv() overwrites the pointer to the last token in argv with NULL, losing ARGV_MAX_TOKEN_LEN per function call.

@ryanflannery ryanflannery self-assigned this May 16, 2019
@ryanflannery
Copy link
Copy Markdown
Owner

Good catch - looks good, but let me review/test it tomorrow before merging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants