-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix memory leak during configuration parsing (#455)
The memory allocated by `strndup` needs to be freed. The code has also been changed to not lose the allocation pointer and according to the semantics of `strtok_r` explained here: https://man.freebsd.org/cgi/man.cgi?query=strtok_r Also improved messaging. Co-authored-by: Roland Bosa <[email protected]>
- Loading branch information
1 parent
0478a1b
commit 3120d0b
Showing
2 changed files
with
11 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