summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-01-23 12:20:43 +0000
committerThomas Adam <thomas@xteddy.org>2017-01-23 12:20:43 +0000
commitb3a724f30ced2f3be3a52fb54c6551b2b6c6de63 (patch)
treeeba69fe13464cf92fcf64cf32505e308949718b6 /client.c
parentd2eab39ffa42a0d5d8e796cbe3352f951f42b4f7 (diff)
parent98e7fbb2acee0238381feea5d583fc439aae08e2 (diff)
Merge branch 'obsd-master'
Conflicts: Makefile tmux.c
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 e3d65964..ea84d645 100644
--- a/client.c
+++ b/client.c
@@ -304,6 +304,8 @@ client_main(struct event_base *base, int argc, char **argv, int flags,
#endif
/* 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);