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/15 21:37:49 UTC

[2/6] git commit: TS-1475: Coverity 1021652 - fix double free.

TS-1475: Coverity 1021652 - fix double free.


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

Branch: refs/heads/master
Commit: a3505cd245272aa56e7f57f08266a40037f6a4a2
Parents: 59821c7
Author: Jeff Elsloo <je...@cable.comcast.com>
Authored: Tue Jul 15 10:51:01 2014 -0600
Committer: Phil Sorber <so...@apache.org>
Committed: Tue Jul 15 13:37:15 2014 -0600

----------------------------------------------------------------------
 mgmt/api/CoreAPI.cc | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/a3505cd2/mgmt/api/CoreAPI.cc
----------------------------------------------------------------------
diff --git a/mgmt/api/CoreAPI.cc b/mgmt/api/CoreAPI.cc
index 505ec6d..fce81c0 100644
--- a/mgmt/api/CoreAPI.cc
+++ b/mgmt/api/CoreAPI.cc
@@ -827,7 +827,6 @@ SnapshotRestore(char *snapshot_name)
   ats_free(snapDirFromRecordsConf);
 
   SnapResult result = configFiles->restoreSnap(snapshot_name, snapDir);
-  ats_free(snapDirFromRecordsConf);
   if (result != SNAP_OK)
     return TS_ERR_FAIL;
   else