trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sor...@apache.org
Subject [trafficserver] branch master updated: Add closedir for dangling dir pointer
Date Tue, 05 Dec 2017 01:22:01 GMT
This is an automated email from the ASF dual-hosted git repository.

sorber 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 f31d28b  Add closedir for dangling dir pointer
f31d28b is described below

commit f31d28bd07e95cba805a9d13a9f00c617402dc12
Author: Evan Zelkowitz <19699200+ezelkow1@users.noreply.github.com>
AuthorDate: Mon Dec 4 14:13:13 2017 -0700

    Add closedir for dangling dir pointer
---
 plugins/experimental/system_stats/system_stats.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/plugins/experimental/system_stats/system_stats.c b/plugins/experimental/system_stats/system_stats.c
index 3d4dd62..abb3afb 100644
--- a/plugins/experimental/system_stats/system_stats.c
+++ b/plugins/experimental/system_stats/system_stats.c
@@ -190,6 +190,9 @@ netStatsInfo(TSMutex stat_creation_mutex)
     setNetStat(stat_creation_mutex, dent->d_name, "tx_packets", STATISTICS_DIR);
     setNetStat(stat_creation_mutex, dent->d_name, "tx_window_errors", STATISTICS_DIR);
   }
+
+  closedir(srcdir);
+
   return 0;
 }
 

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

Mime
View raw message