--- xenstored_core.c.orig 2021-02-03 13:25:38.568308454 +0100 +++ xenstored_core.c 2021-02-03 13:25:44.282429872 +0100 @@ -1440,6 +1440,9 @@ talloc_free(conn->in); conn->in = NULL; + /* if this is a socket connection, drop it now */ + if (conn->fd >= 0) + talloc_free(conn); } static const char *sockmsg_string(enum xsd_sockmsg_type type)