Closed mfrey closed 5 years ago
The PR checks if a call to strdup failed and also introduces a new variable which stores the newly allocated memory before it is overwritten again by a call to strtok and thus, the memory allocated by strdup can't be freed anymore.
strdup
strtok
Fixes #327
Remove unnecessary check, see comments
Has been addressed with the latest updated commit (rebased, push -f)
@blacksheeep Could you please approve the PR?
Contribution description
The PR checks if a call to
strdup
failed and also introduces a new variable which stores the newly allocated memory before it is overwritten again by a call tostrtok
and thus, the memory allocated bystrdup
can't be freed anymore.Issues/PRs references
Fixes #327