summaryrefslogtreecommitdiffhomepage
path: root/src/os/unix/ngx_files.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2012-09-24 18:54:28 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2012-09-24 18:54:28 +0000
commit191e31938e81f2a59a4ba4dc6b3f4f28bc232187 (patch)
tree4a66b21305d26ed0522557cf19be9ffca6d7a758 /src/os/unix/ngx_files.c
parentf8c0690d379ad745fe3a7e7f53548964278ce094 (diff)
downloadnginx-191e31938e81f2a59a4ba4dc6b3f4f28bc232187.tar.gz
nginx-191e31938e81f2a59a4ba4dc6b3f4f28bc232187.tar.bz2
Merge of r4785, r4795, r4811, r4812, r4816, r4822: coverity.
*) Resolver: fixed possible memory leak in ngx_resolver_create(). *) Explicitly ignore returned value from unlink() in ngx_open_tempfile(). *) Explicitly ignore returned value from close() in ngx_event_core_init_conf(). *) Added three missing checks for NULL after ngx_array_push() calls. *) Crypt: fixed handling of corrupted SSHA entries in password file. *) Mark logically dead code with corresponding comment. Found by / prodded by Coverity.
Diffstat (limited to '')
-rw-r--r--src/os/unix/ngx_files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/unix/ngx_files.c b/src/os/unix/ngx_files.c
index 2dfa1b7a1..d71aec316 100644
--- a/src/os/unix/ngx_files.c
+++ b/src/os/unix/ngx_files.c
@@ -139,7 +139,7 @@ ngx_open_tempfile(u_char *name, ngx_uint_t persistent, ngx_uint_t access)
access ? access : 0600);
if (fd != -1 && !persistent) {
- unlink((const char *) name);
+ (void) unlink((const char *) name);
}
return fd;