Repository: trafodion
Updated Branches:
  refs/heads/master d7aada4c9 -> 889631aae


[TRAFODION-3243] Avoid dereference of deleted NAString in UPDATE STATISTICS


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

Branch: refs/heads/master
Commit: 95380a07e2e4f2aec45d9f0b5a92378cc13da33f
Parents: c21519b
Author: Dave Birdsall <dbirds...@apache.org>
Authored: Wed Dec 5 21:15:08 2018 +0000
Committer: Dave Birdsall <dbirds...@apache.org>
Committed: Wed Dec 5 21:15:08 2018 +0000

----------------------------------------------------------------------
 core/sql/ustat/hs_globals.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafodion/blob/95380a07/core/sql/ustat/hs_globals.cpp
----------------------------------------------------------------------
diff --git a/core/sql/ustat/hs_globals.cpp b/core/sql/ustat/hs_globals.cpp
index 6fd65df..b09acad 100644
--- a/core/sql/ustat/hs_globals.cpp
+++ b/core/sql/ustat/hs_globals.cpp
@@ -1497,11 +1497,11 @@ HSColGroupStruct::HSColGroupStruct()
 
 HSColGroupStruct::~HSColGroupStruct()
   {
+    freeISMemory();  // do this first, as it dereferences colNames for logging
     delete clistr;
     delete colNames;
     delete groupHist;
     delete next;
-    freeISMemory();
   }
 
 /**

Reply via email to