< prev index next >

src/hotspot/share/classfile/classLoader.cpp

Print this page
*** 381,14 ***
  
  ClassPathImageEntry::~ClassPathImageEntry() {
    assert(_singleton == this, "must be");
    DEBUG_ONLY(_singleton = NULL);
  
!   if (_name != NULL) {
!     FREE_C_HEAP_ARRAY(const char, _name);
-     _name = NULL;
-   }
    if (_jimage != NULL) {
      (*JImageClose)(_jimage);
      _jimage = NULL;
    }
  }
--- 381,12 ---
  
  ClassPathImageEntry::~ClassPathImageEntry() {
    assert(_singleton == this, "must be");
    DEBUG_ONLY(_singleton = NULL);
  
!   FREE_C_HEAP_ARRAY(const char, _name);
! 
    if (_jimage != NULL) {
      (*JImageClose)(_jimage);
      _jimage = NULL;
    }
  }
< prev index next >