< prev index next >

src/hotspot/os/windows/perfMemory_windows.cpp

Print this page
*** 392,11 ***
          // later becomes the expected value.
          //
          if (statbuf.st_ctime > latest_ctime) {
            char* user = strchr(dentry->d_name, '_') + 1;
  
!           if (latest_user != NULL) FREE_C_HEAP_ARRAY(char, latest_user);
            latest_user = NEW_C_HEAP_ARRAY(char, strlen(user)+1, mtInternal);
  
            strcpy(latest_user, user);
            latest_ctime = statbuf.st_ctime;
          }
--- 392,11 ---
          // later becomes the expected value.
          //
          if (statbuf.st_ctime > latest_ctime) {
            char* user = strchr(dentry->d_name, '_') + 1;
  
!           FREE_C_HEAP_ARRAY(char, latest_user);
            latest_user = NEW_C_HEAP_ARRAY(char, strlen(user)+1, mtInternal);
  
            strcpy(latest_user, user);
            latest_ctime = statbuf.st_ctime;
          }
< prev index next >