aboutsummaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client.c')
-rw-r--r--client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/client.c b/client.c
index 1307b0f7..90b1371c 100644
--- a/client.c
+++ b/client.c
@@ -303,6 +303,8 @@ client_main(struct event_base *base, int argc, char **argv, int flags,
fatal("pledge failed");
/* Free stuff that is not used in the client. */
+ if (ptm_fd != -1)
+ close(ptm_fd);
options_free(global_options);
options_free(global_s_options);
options_free(global_w_options);