summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-05-13 11:17:49 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-05-13 11:17:49 +0200
commita17e907f55390ae39ee8e64fd96d06abc193a7e5 (patch)
treefd7fa60283f1e28e6f08d9262b164d59873f3c24
parent8e4a99716364e92cef9d7870149d75a57163f537 (diff)
fix a file descriptor leak
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index 6bd521a..4ee86eb 100644
--- a/main.c
+++ b/main.c
@@ -59,6 +59,7 @@ netifd_delete_process(struct netifd_process *proc)
uloop_process_delete(&proc->uloop);
list_del(&proc->list);
netifd_fd_delete(&proc->log_fd);
+ close(proc->log_fd.fd);
if (proc->log_buf) {
free(proc->log_buf);
proc->log_buf = NULL;