From 886eb681028a31d736c89f9331a8fe008e5fc5fc Mon Sep 17 00:00:00 2001 From: Jesin Date: Sun, 23 Jun 2019 13:13:05 -0400 Subject: [PATCH] Close pipe after lsof --- OpenFilesScreen.c | 1 + 1 file changed, 1 insertion(+) 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;