You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by br...@apache.org on 2014/07/14 22:22:21 UTC

git commit: TS-1475: Close fd in error case. Coverity #1021847

Repository: trafficserver
Updated Branches:
  refs/heads/master ed0785b34 -> bbe98c779


TS-1475: Close fd in error case. Coverity #1021847


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/bbe98c77
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/bbe98c77
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/bbe98c77

Branch: refs/heads/master
Commit: bbe98c779b7081864871881f24d471d35fbb61a2
Parents: ed0785b
Author: Brian Geffon <br...@apache.org>
Authored: Mon Jul 14 13:22:14 2014 -0700
Committer: Brian Geffon <br...@apache.org>
Committed: Mon Jul 14 13:22:14 2014 -0700

----------------------------------------------------------------------
 example/blacklist-1/blacklist-1.c | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/bbe98c77/example/blacklist-1/blacklist-1.c
----------------------------------------------------------------------
diff --git a/example/blacklist-1/blacklist-1.c b/example/blacklist-1/blacklist-1.c
index 3b137d6..6c96965 100644
--- a/example/blacklist-1/blacklist-1.c
+++ b/example/blacklist-1/blacklist-1.c
@@ -188,6 +188,7 @@ read_blacklist(TSCont contp)
 
   /* If the Mutext lock is not successful try again in RETRY_TIME */
   if (TSMutexLockTry(sites_mutex) != TS_SUCCESS) {
+    TSfclose(file);
     TSContSchedule(contp, RETRY_TIME, TS_THREAD_POOL_DEFAULT);
     return;
   }