This is an automated email from the ASF dual-hosted git repository.

oknet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new e3e3577  Coverity: CID 1380037:  Resource leaks  (RESOURCE_LEAK)
e3e3577 is described below

commit e3e3577a6024b9550acbb23e3e2b2ae20528bd3d
Author: Oknet Xu <xuc...@skyguard.com.cn>
AuthorDate: Wed Aug 30 20:43:41 2017 +0800

    Coverity: CID 1380037:  Resource leaks  (RESOURCE_LEAK)
---
 lib/ts/ink_sock.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ts/ink_sock.cc b/lib/ts/ink_sock.cc
index c8bb6d1..167e0ee 100644
--- a/lib/ts/ink_sock.cc
+++ b/lib/ts/ink_sock.cc
@@ -292,7 +292,7 @@ bind_unix_domain_socket(const char *path, mode_t mode)
 
   if (strlen(path) > sizeof(sockaddr.sun_path) - 1) {
     errno = ENAMETOOLONG;
-    return -1;
+    goto fail;
   }
 
   ink_zero(sockaddr);

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].

Reply via email to