summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorTiago Natel <t.nateldemoura@f5.com>2019-09-20 13:16:33 +0000
committerTiago Natel <t.nateldemoura@f5.com>2019-09-20 13:16:33 +0000
commit7f389c814a46d86c3294466826058cd2ed7b2f98 (patch)
tree52a471427dd36d6503936a7a88de811b596db00d /src
parent514f34144a491832db1647c84a7271120ba7e7d6 (diff)
downloadunit-7f389c814a46d86c3294466826058cd2ed7b2f98.tar.gz
unit-7f389c814a46d86c3294466826058cd2ed7b2f98.tar.bz2
Closing leaking file descriptor.
Found by Coverity (CID 349484).
Diffstat (limited to 'src')
-rw-r--r--src/nxt_clone.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_clone.c b/src/nxt_clone.c
index 0fddd6c7..a2c376a3 100644
--- a/src/nxt_clone.c
+++ b/src/nxt_clone.c
@@ -127,9 +127,13 @@ nxt_clone_proc_map_write(nxt_task_t *task, const char *mapfile, pid_t pid,
nxt_errno);
}
+ close(mapfd);
+
return NXT_ERROR;
}
+ close(mapfd);
+
return NXT_OK;
}