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

zwoop 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 7799320  coverty 1196454: resource leak in buffer_upload plugin
7799320 is described below

commit 7799320feb6dd0e99ad7ad659faed67a2c9d7540
Author: Kit Chan <[email protected]>
AuthorDate: Tue Jun 6 17:11:50 2017 -0700

    coverty 1196454: resource leak in buffer_upload plugin
---
 plugins/experimental/buffer_upload/buffer_upload.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plugins/experimental/buffer_upload/buffer_upload.cc 
b/plugins/experimental/buffer_upload/buffer_upload.cc
index 6ca2981..8d754d0 100644
--- a/plugins/experimental/buffer_upload/buffer_upload.cc
+++ b/plugins/experimental/buffer_upload/buffer_upload.cc
@@ -971,6 +971,7 @@ create_directory()
     while ((d = readdir(dir))) {
       if (remove(d->d_name) < 0) {
         TSError("[%s] Unable to remove '%s': %s", PLUGIN_NAME, d->d_name, 
strerror(errno));
+        closedir(dir);
         goto error_out;
       }
     }

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to