Bugzilla – Bug 1182
Resource leak (socket)
Last modified: 2016-12-13 13:57:14 CET
Created attachment 367 [details]
Close socket so that it doesn't leak
In file services/listen_dnsport.c the function create_local_accept_sock seems to leak resource s (socket) whereas in function create_tcp_accept_sock that doesn't happen.
Please find attached a proposed diff, for your revision, to close the socket whenever an error is found.
Thank you for the find and the fix. I note that this routine is only called at startup, so the leak would not have accumulated. The patch is great, and I have integrated it into the code repository.
Best regards, Wouter