< prev index next >

src/hotspot/share/jfr/recorder/stacktrace/jfrStackTraceRepository.cpp

Print this page
@@ -270,13 +270,11 @@
      memcpy(_frames, trace._frames, _nr_of_frames * sizeof(JfrStackFrame));
    }
  }
  
  JfrStackTraceRepository::StackTrace::~StackTrace() {
-   if (_frames != NULL) {
-     FREE_C_HEAP_ARRAY(JfrStackFrame, _frames);
-   }
+   FREE_C_HEAP_ARRAY(JfrStackFrame, _frames);
  }
  
  bool JfrStackTraceRepository::StackTrace::equals(const JfrStackTrace& rhs) const {
    if (_reached_root != rhs._reached_root || _nr_of_frames != rhs._nr_of_frames || _hash != rhs._hash) {
      return false;
< prev index next >