diff --git a/criu/page-xfer.c b/criu/page-xfer.c index db8e5bec21..98e9c6b6e1 100644 --- a/criu/page-xfer.c +++ b/criu/page-xfer.c @@ -1457,7 +1457,7 @@ int cr_page_server(bool daemon_mode, bool lazy_dump, int cfd) return ret > 0 ? 0 : -1; if (tls_x509_init(ask, true)) { - close(sk); + close_safe(&sk); return -1; }