From 5086b374255d2df5819fd7f47918af35c9cf213a Mon Sep 17 00:00:00 2001 From: Gerard Wagener Date: Tue, 15 Jan 2019 13:25:33 +0100 Subject: [PATCH] chg: [client] close file descriptor --- client/d4.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/d4.c b/client/d4.c index 9d8cdd5..5a71c56 100644 --- a/client/d4.c +++ b/client/d4.c @@ -121,6 +121,7 @@ int d4_load_config(d4_t* d4) if (fd > 0) { //FIXME error handling read(fd, d4->conf[i], SZCONFVALUE); + close(fd); } else { d4->errno_copy = errno; INSERT_ERROR("Failed to load %s", d4params[i]);