You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by so...@apache.org on 2014/07/16 05:12:53 UTC
[12/14] git commit: TS-1475: Coverity 1021820 - fix resource leak.
TS-1475: Coverity 1021820 - fix resource leak.
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/141b122f
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/141b122f
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/141b122f
Branch: refs/heads/master
Commit: 141b122fed80c2731cd4f0e1311cdbc571331094
Parents: dd2847f
Author: Jeff Elsloo <je...@cable.comcast.com>
Authored: Tue Jul 15 15:02:03 2014 -0600
Committer: Phil Sorber <so...@apache.org>
Committed: Tue Jul 15 21:11:38 2014 -0600
----------------------------------------------------------------------
mgmt/MultiFile.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/141b122f/mgmt/MultiFile.cc
----------------------------------------------------------------------
diff --git a/mgmt/MultiFile.cc b/mgmt/MultiFile.cc
index 07d6060..3e0cdab 100644
--- a/mgmt/MultiFile.cc
+++ b/mgmt/MultiFile.cc
@@ -100,7 +100,7 @@ MultiFile::WalkFiles(ExpandingArray * fileList)
DIR *dir;
char *fileName;
char *filePath;
- char *records_config_filePath = NULL;
+ char *records_config_filePath;
struct stat fileInfo;
struct stat records_config_fileInfo;
fileEntry *fileListEntry;
@@ -138,13 +138,13 @@ MultiFile::WalkFiles(ExpandingArray * fileList)
}
}
delete[]filePath;
+ delete[]records_config_filePath;
}
ats_free(dirEntry);
closedir(dir);
fileList->sortWithFunction(fileEntryCmpFunc);
- delete[]records_config_filePath;
return MF_OK;
}