From: Vitezslav Kriz Date: Tue, 29 Aug 2017 10:08:48 +0000 (+0200) Subject: main ipc_activity: close and free handle on error X-Git-Tag: v1.4.0~12^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=536fa6106767db144dec6342afbb8ef9528ae7cd;p=thirdparty%2Fknot-resolver.git main ipc_activity: close and free handle on error --- diff --git a/daemon/main.c b/daemon/main.c index b35fa3eb3..92546c43b 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -254,6 +254,7 @@ failure: */ kr_log_error("[system] stopping ipc because of: %s\n", strerror(errno)); uv_poll_stop(handle); + uv_close((uv_handle_t *)handle, (uv_close_cb)free); } static bool ipc_watch(uv_loop_t *loop, struct engine *engine, int fd)