diff --git a/common/socket.c b/common/socket.c index ed287b99..9ca424a9 100644 --- a/common/socket.c +++ b/common/socket.c @@ -56,6 +56,8 @@ socket_getaddr(const char *display) homedir, host, a_strlen(host) ? "." : "", displayp); + p_delete(&host); + if(path_len >= ssizeof(addr->sun_path)) { fprintf(stderr, "error: path of control UNIX domain socket is too long");