-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load-plugins related issues fixes #177
Load-plugins related issues fixes #177
Conversation
Pull Request Test Coverage Report for Build 1546713033Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Also, on the |
Co-authored-by: Ossama Othman <ossama.othman@gmail.com>
Co-authored-by: Ossama Othman <ossama.othman@gmail.com>
Co-authored-by: Ossama Othman <ossama.othman@gmail.com>
Co-authored-by: Ossama Othman <ossama.othman@gmail.com>
Yes, that's correct. |
Do you want me to comment some parts to explain why things are not needed or why they are done that way? |
Sure, that would be great. Thanks! |
@dulive I pushed two additional fixes to this pull request. |
I completely forgot about the tests, sorry. |
There is no need to call close() on the file on the file descriptor after a call to fdopendir(). closedir() is sufficient since fdopendir() basically claims onwership of the file descriptor. Calling close() after closedir() in this case actually results in a EBADF error. This reverts commit c6762cd.
No worries. Thanks for your contributions! :) |
This looks good. Do you have any other changes pending? If not, I'll squash and merge. Thanks so much! |
That's all the changes I had. |
Fixed a memory leak inserted with the load-plugins options, where the
plugins_to_load
queue of thesys_config
variable was not being destroyed on themptcpd_config_create
function.Added a missing
const
qualifier to the input argumentplugins
of theset_plugins_to_load
function.Removed an extra space and dot on the man page.