Fix file descriptor leak in Confd Client
The queryOneServer function opens a UDP socket to connect to the specified confd server. However, it would never close it. Fix this and do so in a bracket construction to make sure it also gets cleaned up in case of errors. Signed-off-by:Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
Showing
Please register or sign in to comment