trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sor...@apache.org
Subject trafficserver git commit: TS-3122: Fix Coverity issues 1304796 and 1304797.
Date Tue, 09 Jun 2015 15:16:51 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master c542d6e9e -> 7d51572de


TS-3122: Fix Coverity issues 1304796 and 1304797.


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

Branch: refs/heads/master
Commit: 7d51572ded2843f998213c986617db1f92ed831d
Parents: c542d6e
Author: Phil Sorber <sorber@apache.org>
Authored: Tue Jun 9 09:14:03 2015 -0600
Committer: Phil Sorber <sorber@apache.org>
Committed: Tue Jun 9 09:16:18 2015 -0600

----------------------------------------------------------------------
 iocore/cache/CacheDir.cc | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/7d51572d/iocore/cache/CacheDir.cc
----------------------------------------------------------------------
diff --git a/iocore/cache/CacheDir.cc b/iocore/cache/CacheDir.cc
index 529752e..f37000b 100644
--- a/iocore/cache/CacheDir.cc
+++ b/iocore/cache/CacheDir.cc
@@ -1085,6 +1085,7 @@ sync_cache_dir_on_shutdown(void)
           ats_free_hugepage(buf, buflen);
         else
           ats_memalign_free(buf);
+        buf = NULL;
       }
       buflen = dirlen;
       if (ats_hugepage_enabled()) {
@@ -1215,6 +1216,7 @@ Lrestart:
             ats_free_hugepage(buf, buflen);
           else
             ats_memalign_free(buf);
+          buf = NULL;
         }
         buflen = dirlen;
         if (ats_hugepage_enabled()) {


Mime
View raw message