aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index d33d6ab..33f5cde 100644
--- a/main.c
+++ b/main.c
@@ -260,6 +260,7 @@ size_t get_win_title(unsigned char *buf, int len, bool init)
if (pfd.readfd >= 0) {
if ((n = read(pfd.readfd, buf, len-1)) > 0)
buf[n] = '\0';
+ close(pfd.readfd);
}
}