diff --git a/util/term/term.c b/util/term/term.c index cf3fdda9b2..b1624b28be 100644 --- a/util/term/term.c +++ b/util/term/term.c @@ -235,6 +235,7 @@ remote_connect_unix(const char *cpath) perror("chdir back failed:"); exit(1); } + free(cwd); } // Return the FD of our new connection.