summaryrefslogtreecommitdiffstats
path: root/OpenFilesScreen.c
diff options
context:
space:
mode:
authorJesin <Jesin00@gmail.com>2019-06-23 13:13:05 -0400
committerJesin <Jesin00@gmail.com>2019-06-23 13:13:05 -0400
commit886eb681028a31d736c89f9331a8fe008e5fc5fc (patch)
tree7f725860df892d32de94d87ba71b4ea21ad80881 /OpenFilesScreen.c
parent402e46bb82964366746b86d77eb5afa69c279539 (diff)
Close pipe after lsof
Diffstat (limited to 'OpenFilesScreen.c')
-rw-r--r--OpenFilesScreen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenFilesScreen.c b/OpenFilesScreen.c
index 9ea333bf..658b1866 100644
--- a/OpenFilesScreen.c
+++ b/OpenFilesScreen.c
@@ -124,6 +124,7 @@ static OpenFiles_ProcessData* OpenFilesScreen_getProcessData(pid_t pid) {
item->data[cmd] = xStrdup(line + 1);
free(line);
}
+ fclose(fd);
int wstatus;
if (waitpid(child, &wstatus, 0) == -1) {
pdata->error = 1;

© 2014-2024 Faster IT GmbH | imprint | privacy policy