diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-05-13 11:17:49 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-05-13 11:17:49 +0200 |
commit | a17e907f55390ae39ee8e64fd96d06abc193a7e5 (patch) | |
tree | fd7fa60283f1e28e6f08d9262b164d59873f3c24 | |
parent | 8e4a99716364e92cef9d7870149d75a57163f537 (diff) |
fix a file descriptor leak
-rw-r--r-- | main.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |