chg: [client] close file descriptor

pull/23/head
Gerard Wagener 2019-01-15 13:25:33 +01:00
parent d738a68312
commit 5086b37425
1 changed files with 1 additions and 0 deletions

View File

@ -121,6 +121,7 @@ int d4_load_config(d4_t* d4)
if (fd > 0) { if (fd > 0) {
//FIXME error handling //FIXME error handling
read(fd, d4->conf[i], SZCONFVALUE); read(fd, d4->conf[i], SZCONFVALUE);
close(fd);
} else { } else {
d4->errno_copy = errno; d4->errno_copy = errno;
INSERT_ERROR("Failed to load %s", d4params[i]); INSERT_ERROR("Failed to load %s", d4params[i]);