]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
main ipc_activity: close and free handle on error
authorVitezslav Kriz <vitezslav.kriz@nic.cz>
Tue, 29 Aug 2017 10:08:48 +0000 (12:08 +0200)
committerVitezslav Kriz <vitezslav.kriz@nic.cz>
Tue, 29 Aug 2017 10:08:48 +0000 (12:08 +0200)
daemon/main.c

index b35fa3eb375ecf035782729827ecf9ce06875b42..92546c43bf2c1a5464b733579c5ba68a5a2ba89e 100644 (file)
@@ -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)