From: Vladimír Čunát Date: Mon, 10 Dec 2018 15:14:02 +0000 (+0100) Subject: worker shutdown: close the leaking uv handle X-Git-Tag: v3.2.0~14^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93d6d075a4683bc3450c7d21253f53ba471e214c;p=thirdparty%2Fknot-resolver.git worker shutdown: close the leaking uv handle --- diff --git a/daemon/main.c b/daemon/main.c index bbe10c6ec..4e3e379cf 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -461,6 +461,7 @@ static int run_worker(uv_loop_t *loop, struct engine *engine, fd_array_t *ipc_se if (sock_file) { unlink(sock_file); } + uv_close((uv_handle_t *)&pipe, NULL); /* Seems OK even on the stopped loop. */ return kr_ok(); }